wined3d: Introduce helper function to generate conditional instructions.