radeonsi: don't check for redundant and NULL states in si_emit_all_states
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>
This commit is contained in:
parent
11293d71f2
commit
c28396cf20
|
@ -1530,8 +1530,8 @@ static void si_emit_all_states(struct si_context *sctx, const struct pipe_draw_i
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue