radeonsi: properly handler raster_config setup on CZ
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Jun 2015 15:43:24 +0000 (11:43 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 14 Aug 2015 13:02:29 +0000 (15:02 +0200)
Need to take into account the number of RBs.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index c95fbf84047290cff2cd40776d486ee52a893bff..83b7db2b1dd8cab4d78f1e48e7b657e0396cd41f 100644 (file)
@@ -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);