From 808893ee690f8d281c41a6d7f1ffaffc13602284 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sun, 14 Aug 2022 08:50:31 -0400 Subject: [PATCH] radeonsi: cosmetic changes in si_emit_rasterizer_prim_state Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_draw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp index 63c1de0..b755cbd 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.cpp +++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp @@ -1129,11 +1129,10 @@ static unsigned si_get_ia_multi_vgt_param(struct si_context *sctx, } /* rast_prim is the primitive type after GS. */ -template ALWAYS_INLINE +template ALWAYS_INLINE static void si_emit_rasterizer_prim_state(struct si_context *sctx) { struct radeon_cmdbuf *cs = &sctx->gfx_cs; - enum pipe_prim_type rast_prim = sctx->current_rast_prim; struct si_state_rasterizer *rs = sctx->queued.named.rasterizer; radeon_begin(cs); @@ -1142,6 +1141,7 @@ static void si_emit_rasterizer_prim_state(struct si_context *sctx) /* For lines, reset the stipple pattern at each primitive. Otherwise, * reset the stipple pattern at each packet (line strips, line loops). */ + enum pipe_prim_type rast_prim = sctx->current_rast_prim; bool reset_per_prim = rast_prim == PIPE_PRIM_LINES || rast_prim == PIPE_PRIM_LINES_ADJACENCY; /* 0 = no reset, 1 = reset per prim, 2 = reset per packet */ @@ -2081,7 +2081,7 @@ static void si_emit_all_states(struct si_context *sctx, const struct pipe_draw_i unsigned min_vertex_count, bool primitive_restart, unsigned skip_atom_mask) { - si_emit_rasterizer_prim_state(sctx); + si_emit_rasterizer_prim_state(sctx); if (HAS_TESS) si_emit_derived_tess_state(sctx); -- 2.7.4