From 898c9cb797b064cbbf0dd71be091a52f5292540a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 24 Dec 2019 13:46:38 -0500 Subject: [PATCH] radeonsi: fix context roll tracking in si_emit_shader_vs probably harmless, because we don't need to track context rolls on gfx10 Reviewed-by: Pierre-Eric Pelloux-Prayer --- src/gallium/drivers/radeonsi/si_state_shaders.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index bf4a22de13b..c5412f3b143 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1312,9 +1312,6 @@ static void si_emit_shader_vs(struct si_context *sctx) SI_TRACKED_VGT_VERTEX_REUSE_BLOCK_CNTL, shader->vgt_vertex_reuse_block_cntl); - if (initial_cdw != sctx->gfx_cs->current.cdw) - sctx->context_roll = true; - /* Required programming for tessellation. (legacy pipeline only) */ if (sctx->chip_class == GFX10 && shader->selector->type == PIPE_SHADER_TESS_EVAL) { @@ -1331,6 +1328,9 @@ static void si_emit_shader_vs(struct si_context *sctx) shader->pa_cl_vs_out_cntl, SI_TRACKED_PA_CL_VS_OUT_CNTL__VS_MASK); } + + if (initial_cdw != sctx->gfx_cs->current.cdw) + sctx->context_roll = true; } /** -- 2.30.2