From 4968313fe546111b75e3f1e1b9513debb6f195b5 Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Thu, 16 Sep 2021 18:33:51 +0200 Subject: [PATCH] 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 Reviewed-by: Christian Gmeiner Part-of: --- 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]);