diff options
author | Marek Olšák <[email protected]> | 2018-04-08 21:20:53 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | 3160ee876aa37ddf3f9de42a3db3f986eff57000 (patch) | |
tree | 2622f21b7cf6cb037df59e37d56cb2a3391240f4 /src/gallium/drivers/radeonsi/si_state_draw.c | |
parent | de344209ad6825600a0d5bd7156a95cc8093e4a0 (diff) |
radeonsi: remove unused atom parameter from si_atom::emit
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_draw.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 8d41988e382..0b5869b3b8e 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -1181,11 +1181,9 @@ static void si_emit_all_states(struct si_context *sctx, const struct pipe_draw_i { /* Emit state atoms. */ unsigned mask = sctx->dirty_atoms & ~skip_atom_mask; - while (mask) { - struct si_atom *atom = &sctx->atoms.array[u_bit_scan(&mask)]; + while (mask) + sctx->atoms.array[u_bit_scan(&mask)].emit(sctx); - atom->emit(sctx, atom); - } sctx->dirty_atoms &= skip_atom_mask; /* Emit states. */ @@ -1447,7 +1445,7 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) /* <-- CUs are idle here. */ if (si_is_atom_dirty(sctx, &sctx->atoms.s.render_cond)) - sctx->atoms.s.render_cond.emit(sctx, NULL); + sctx->atoms.s.render_cond.emit(sctx); sctx->dirty_atoms = 0; si_emit_draw_packets(sctx, info, indexbuf, index_size, index_offset); |