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 <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12916>
This commit is contained in:
Philipp Zabel 2021-09-16 18:33:51 +02:00 committed by Marge Bot
parent fc5ea6a054
commit 4968313fe5

View file

@ -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]);