[Mesa-dev] [PATCH] radeonsi: fix the raster config setup for 1 RB iceland chips

Alex Deucher alexdeucher at gmail.com
Wed Jun 1 13:17:41 UTC 2016


I didn't realize there were 1 and 2 RB variants when this code
was originally added.

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
Cc: <mesa-stable at lists.freedesktop.org>
---
 src/gallium/drivers/radeonsi/si_state.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index 85d8509..a5e3956 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -3682,7 +3682,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:
-- 
2.5.5



More information about the mesa-dev mailing list