All places set dirty_states correctly now.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8794>
unsigned i = u_bit_scan(&mask);
struct si_pm4_state *state = sctx->queued.array[i];
- if (!state || sctx->emitted.array[i] == state)
- continue;
+ /* All places should unset dirty_states if this doesn't pass. */
+ assert(state && state != sctx->emitted.array[i]);
si_pm4_emit(sctx, state);
sctx->emitted.array[i] = state;