From: Marek Olšák Date: Tue, 16 Jul 2019 17:23:17 +0000 (-0400) Subject: radeonsi/gfx10: fix VGT_PRIMITIVE_TYPE programming X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c741bed6e823afe75edecbb0d0a4c18d785480cd;p=mesa.git radeonsi/gfx10: fix VGT_PRIMITIVE_TYPE programming Acked-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Samuel Pitoiset --- diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index dca0840a693..f39b7c653e5 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -768,7 +768,9 @@ static void si_emit_draw_registers(struct si_context *sctx, instance_count, primitive_restart); if (vgt_prim != sctx->last_prim) { - if (sctx->chip_class >= GFX7) + if (sctx->chip_class >= GFX10) + radeon_set_uconfig_reg(cs, R_030908_VGT_PRIMITIVE_TYPE, vgt_prim); + else if (sctx->chip_class >= GFX7) radeon_set_uconfig_reg_idx(cs, sctx->screen, R_030908_VGT_PRIMITIVE_TYPE, 1, vgt_prim); else