mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
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:
parent
fc5ea6a054
commit
4968313fe5
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue