From: Alex Deucher Date: Fri, 28 Sep 2012 21:35:26 +0000 (-0400) Subject: radeonsi: fix VGT_PRIMITIVE_TYPE emit for CIK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b363a45c545e161e986bd438b6be2bdabe56d446;p=mesa.git radeonsi: fix VGT_PRIMITIVE_TYPE emit for CIK Signed-off-by: Alex Deucher --- diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 09c741fa3f1..234f66155fb 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -285,7 +285,10 @@ static bool si_update_draw_info_state(struct r600_context *rctx, return false; } - si_pm4_set_reg(pm4, R_008958_VGT_PRIMITIVE_TYPE, prim); + if (rctx->chip_class >= CIK) + si_pm4_set_reg(pm4, R_030908_VGT_PRIMITIVE_TYPE, prim); + else + si_pm4_set_reg(pm4, R_008958_VGT_PRIMITIVE_TYPE, prim); si_pm4_set_reg(pm4, R_028400_VGT_MAX_VTX_INDX, ~0); si_pm4_set_reg(pm4, R_028404_VGT_MIN_VTX_INDX, 0); si_pm4_set_reg(pm4, R_028408_VGT_INDX_OFFSET,