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

Author: Philipp Zabel <[email protected]>
Date:   Thu Sep 16 18:33:51 2021 +0200

etnaviv: fix dirty bit check for baselod emission

Since baselod is stored in sampler state, not sampler view, we should
check the ETNA_DIRTY_SAMPLERS bit instead of ETNA_DIRTY_SAMPLER_VIEWS.

Signed-off-by: Philipp Zabel <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12916>

---

 src/gallium/drivers/etnaviv/etnaviv_texture_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/etnaviv/etnaviv_texture_state.c 
b/src/gallium/drivers/etnaviv/etnaviv_texture_state.c
index e9e930033f8..73abc281da5 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_texture_state.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_texture_state.c
@@ -430,7 +430,7 @@ etna_emit_new_texture_state(struct etna_context *ctx)
          }
       }
    }
-   if (unlikely(dirty & (ETNA_DIRTY_SAMPLER_VIEWS))) {
+   if (unlikely(dirty & (ETNA_DIRTY_SAMPLERS))) {
       for (int x = 0; x < VIVS_NTE_SAMPLER__LEN; ++x) {
          if ((1 << x) & active_samplers) {
             struct etna_sampler_state *ss = 
etna_sampler_state(ctx->sampler[x]);

Reply via email to