radeonsi: clean up some magic numbers
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Nov 2012 00:17:34 +0000 (19:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Nov 2012 18:02:42 +0000 (13:02 -0500)
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 2bd55bbb6fc83a15be3a3a4afe3e160869046815..0683b676599d3c4ea6a56238cb483e9fc971972f 100644 (file)
@@ -2655,7 +2655,8 @@ 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, (3 << 1) | 1);
+       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);