radeonsi: PA_CL_ENHANCE is privileged on CIK
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Nov 2012 04:05:59 +0000 (23:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Jun 2013 19:16:46 +0000 (15:16 -0400)
Needs to be and is set by the kernel.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index db113aacf9133ee63ded8dfb13e3bd91995417c7..4ef73ec4b37aa5c870116564071711cdbc5b93aa 100644 (file)
@@ -2925,8 +2925,9 @@ void si_init_config(struct r600_context *rctx)
                       S_028AA8_PRIMGROUP_SIZE(63));
        si_pm4_set_reg(pm4, R_028AB4_VGT_REUSE_OFF, 0x00000000);
        si_pm4_set_reg(pm4, R_028AB8_VGT_VTX_CNT_EN, 0x0);
-       si_pm4_set_reg(pm4, R_008A14_PA_CL_ENHANCE, S_008A14_NUM_CLIP_SEQ(3) |
-                      S_008A14_CLIP_VTX_REORDER_ENA(1));
+       if (rctx->chip_class < CIK)
+               si_pm4_set_reg(pm4, R_008A14_PA_CL_ENHANCE, S_008A14_NUM_CLIP_SEQ(3) |
+                              S_008A14_CLIP_VTX_REORDER_ENA(1));
 
        si_pm4_set_reg(pm4, R_028B54_VGT_SHADER_STAGES_EN, 0);
        si_pm4_set_reg(pm4, R_028BD4_PA_SC_CENTROID_PRIORITY_0, 0x76543210);