From f0e24a7beae57f24501fa9d3b6b947fc20ca23bb Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 10 Jun 2015 11:43:24 -0400 Subject: [PATCH] radeonsi: properly handler raster_config setup on CZ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Need to take into account the number of RBs. Reviewed-by: Marek Olšák Signed-off-by: Alex Deucher --- src/gallium/drivers/radeonsi/si_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index c95fbf84047..83b7db2b1dd 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -3190,10 +3190,10 @@ static void si_init_config(struct si_context *sctx) si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1, 0x0000002a); break; case CHIP_ICELAND: - case CHIP_CARRIZO: si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000002); si_pm4_set_reg(pm4, R_028354_PA_SC_RASTER_CONFIG_1, 0x00000000); break; + case CHIP_CARRIZO: case CHIP_KAVERI: if (num_rb > 1) si_pm4_set_reg(pm4, R_028350_PA_SC_RASTER_CONFIG, 0x00000002); -- 2.30.2