From e7b82a9978fc226c34d46c54c4baef6182c912c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 1 May 2018 13:08:44 -0400 Subject: [PATCH] ac: remove 1 RB raster config for Iceland MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Iceland always reports 2 RBs. Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_gpu_info.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 83e729b3d15..0fc71e8bf3a 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -565,7 +565,6 @@ ac_get_raster_config(struct radeon_info *info, uint32_t *raster_config_p, uint32_t *raster_config_1_p) { - unsigned num_rb = MIN2(info->num_render_backends, 16); unsigned raster_config, raster_config_1; switch (info->family) { case CHIP_TAHITI: @@ -615,10 +614,7 @@ ac_get_raster_config(struct radeon_info *info, raster_config_1 = 0x0000002a; break; case CHIP_ICELAND: - if (num_rb == 1) - raster_config = 0x00000000; - else - raster_config = 0x00000002; + raster_config = 0x00000002; raster_config_1 = 0x00000000; break; case CHIP_CARRIZO: -- 2.30.2