summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-05-01 13:08:44 -0400
committerMarek Olšák <[email protected]>2018-05-10 18:26:32 -0400
commite7b82a9978fc226c34d46c54c4baef6182c912c8 (patch)
treecb55ef3fefdb77d17f590ce8ad1208b1708d6005 /src/amd/common
parentcb0f5cddcca06706a691f9b54d129ef98a2afb38 (diff)
ac: remove 1 RB raster config for Iceland
Iceland always reports 2 RBs. Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_gpu_info.c6
1 files changed, 1 insertions, 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: