[Mesa-dev] [PATCH 04/16] ac: remove 1 RB raster config for Iceland
Marek Olšák
maraeo at gmail.com
Wed May 2 04:00:28 UTC 2018
From: Marek Olšák <marek.olsak at amd.com>
Iceland always reports 2 RBs.
---
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 273ccb6cb1d..3ba7b4b717a 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -558,21 +558,20 @@ ac_get_gs_table_depth(enum chip_class chip_class, enum radeon_family family)
default:
unreachable("Unknown GPU");
}
}
void
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:
case CHIP_PITCAIRN:
raster_config = 0x2a00126a;
raster_config_1 = 0x00000000;
break;
case CHIP_VERDE:
raster_config = 0x0000124a;
raster_config_1 = 0x00000000;
@@ -608,24 +607,21 @@ ac_get_raster_config(struct radeon_info *info,
break;
case CHIP_VEGAM:
raster_config = 0x3a00161a;
raster_config_1 = 0x0000002e;
break;
case CHIP_TONGA:
raster_config = 0x16000012;
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:
raster_config = 0x00000002;
raster_config_1 = 0x00000000;
break;
case CHIP_KAVERI:
raster_config = 0x00000002;
raster_config_1 = 0x00000000;
break;
--
2.17.0
More information about the mesa-dev
mailing list