diff options
author | Marek Olšák <[email protected]> | 2019-07-16 13:23:17 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-19 20:16:19 -0400 |
commit | c741bed6e823afe75edecbb0d0a4c18d785480cd (patch) | |
tree | 92b0252d860cce729e36dad1c607aa95f9fba93f /src | |
parent | a0d330bedb9eb5668bc73c60e525f3c76d23a93a (diff) |
radeonsi/gfx10: fix VGT_PRIMITIVE_TYPE programming
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |