ac: remove 1 RB raster config for Iceland
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 May 2018 17:08:44 +0000 (13:08 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 May 2018 22:26:32 +0000 (18:26 -0400)
Iceland always reports 2 RBs.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_gpu_info.c

index 83e729b3d15e15d26cd23c8db52a1921915ede37..0fc71e8bf3a303fa7ba924e0b52d97134b55467a 100644 (file)
@@ -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: