From b363a45c545e161e986bd438b6be2bdabe56d446 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Fri, 28 Sep 2012 17:35:26 -0400 Subject: [PATCH] radeonsi: fix VGT_PRIMITIVE_TYPE emit for CIK Signed-off-by: Alex Deucher --- src/gallium/drivers/radeonsi/si_state_draw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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, -- 2.30.2