Mesa (main): crocus/gfx6: fix sampler view first level.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 24 07:09:35 UTC 2021


Module: Mesa
Branch: main
Commit: a74c16e5f8bd0647f8d5bf199eccd1551b0949e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a74c16e5f8bd0647f8d5bf199eccd1551b0949e3

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Jun 24 13:19:31 2021 +1000

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>

---

 src/gallium/drivers/crocus/crocus_state.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index 8506aaced06..8cb00a98fa1 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -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



More information about the mesa-commit mailing list