radeonsi: fix the raster config setup for 1 RB iceland chips
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 23 May 2016 19:53:56 +0000 (15:53 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jun 2016 13:59:57 +0000 (09:59 -0400)
I didn't realize there were 1 and 2 RB variants when this code
was originally added.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: 11.1 11.2 12.0 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/radeonsi/si_state.c

index 5bf87a8961a7f65a59202484d9403723e1bbbaaa..58cbac4a4c083948ba96098e242c28370068c520 100644 (file)
@@ -3712,7 +3712,10 @@ static void si_init_config(struct si_context *sctx)
                raster_config_1 = 0x0000002a;
                break;
        case CHIP_ICELAND:
-               raster_config = 0x00000002;
+               if (num_rb == 1)
+                       raster_config = 0x00000000;
+               else
+                       raster_config = 0x00000002;
                raster_config_1 = 0x00000000;
                break;
        case CHIP_CARRIZO: