From a59d387bc2fd22f371574bd3c5b2b807dfc74dbe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 16 Jul 2023 05:52:42 -0400 Subject: [PATCH] radeonsi: move si_emit_rasterizer_prim_state out of si_emit_all_states Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_draw.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp index acef751..7ab7402 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.cpp +++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp @@ -1928,12 +1928,9 @@ static void si_get_draw_start_count(struct si_context *sctx, const struct pipe_d } } -template ALWAYS_INLINE static void si_emit_all_states(struct si_context *sctx, unsigned skip_atom_mask) { - si_emit_rasterizer_prim_state(sctx); - /* Emit state atoms. */ unsigned mask = sctx->dirty_atoms & ~skip_atom_mask; if (mask) { @@ -2259,7 +2256,8 @@ static void si_draw(struct pipe_context *ctx, bool primitive_restart = !IS_DRAW_VERTEX_STATE && info->primitive_restart; /* Emit all states except possibly render condition. */ - si_emit_all_states(sctx, masked_atoms); + si_emit_rasterizer_prim_state(sctx); + si_emit_all_states(sctx, masked_atoms); /* Emit draw states. */ si_emit_vs_state -- 2.7.4