crocus/gfx6: fix sampler view first level.

The gfx6 state needs to dirty sampler state so that BaseMipLevel
gets updated properly.

Fixes:
dEQP-GLES3.functional.texture.mipmap.cube.base_level.*

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567>
This commit is contained in:
Dave Airlie
2021-06-24 13:19:31 +10:00
committed by Marge Bot
parent 0acd202858
commit a74c16e5f8
+4 -1
View File
@@ -3142,7 +3142,10 @@ crocus_set_sampler_views(struct pipe_context *ctx,
shs->bound_sampler_views |= 1 << (start + i);
}
}
#if GFX_VER == 6
/* first level parameters to crocus_upload_sampler_state is gfx6 only */
ice->state.stage_dirty |= CROCUS_STAGE_DIRTY_SAMPLER_STATES_VS << stage;
#endif
ice->state.stage_dirty |= (CROCUS_STAGE_DIRTY_BINDINGS_VS << stage);
ice->state.dirty |=
stage == MESA_SHADER_COMPUTE ? CROCUS_DIRTY_COMPUTE_RESOLVES_AND_FLUSHES