radeonsi: emit PA_SC_RASTER_CONFIG
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Nov 2012 00:15:53 +0000 (19:15 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 16 Nov 2012 18:02:42 +0000 (13:02 -0500)
Use per asic golden values.

Programming this register doesn't seem to be strictly
necessary on SI, but programming it wrong leads to
rendering issues or reduced performance so just
go ahead and program the golden values explicitly
to avoid any potential problems down the road.

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 db305d40bf7276a2279aaf1c5afaaf958a26cc05..2bd55bbb6fc83a15be3a3a4afe3e160869046815 100644 (file)
@@ -2665,5 +2665,16 @@ void si_init_config(struct r600_context *rctx)
 
        si_pm4_set_reg(pm4, R_02882C_PA_SU_PRIM_FILTER_CNTL, 0);
 
+       switch (rctx->screen->family) {
+       case CHIP_TAHITI:
+       case CHIP_PITCAIRN:
+               si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x2a00126a);
+               break;
+       case CHIP_VERDE:
+       default:
+               si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x0000124a);
+               break;
+       }
+
        si_pm4_set_state(rctx, init, pm4);
 }