radeonsi: default PA_SC_RASTER_CONFIG to 0
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2013 00:09:48 +0000 (19:09 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Feb 2013 20:44:07 +0000 (15:44 -0500)
That should work in all cases.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Note: this is a candidate for the 9.1 branch.

src/gallium/drivers/radeonsi/si_state.c

index 6478e9a42dd5d9b3afc2cc454a8523cf12c44abf..6e508323429d2cefda8d2972e5402d1fa0906ecd 100644 (file)
@@ -2662,12 +2662,14 @@ void si_init_config(struct r600_context *rctx)
                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;
        case CHIP_OLAND:
                si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000082);
                break;
+       default:
+               si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000000);
+               break;
        }
 
        si_pm4_set_state(rctx, init, pm4);