[PATCH 1/4] wined3d: Factor out wined3d_state_uses_depth_buffer().