mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
radeonsi: don't mark NULL states as dirty in si_pm4_reset_emitted
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8653>
This commit is contained in:
parent
488cd3b93f
commit
28e419f001
1 changed files with 5 additions and 1 deletions
|
|
@ -142,5 +142,9 @@ void si_pm4_reset_emitted(struct si_context *sctx, bool first_cs)
|
|||
}
|
||||
|
||||
memset(&sctx->emitted, 0, sizeof(sctx->emitted));
|
||||
sctx->dirty_states |= u_bit_consecutive(0, SI_NUM_STATES);
|
||||
|
||||
for (unsigned i = 0; i < SI_NUM_STATES; i++) {
|
||||
if (sctx->queued.array[i])
|
||||
sctx->dirty_states |= BITFIELD_BIT(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue