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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user