ac/gpu_info: set num_tiles_pipes on gfx10+ too
authorMarek Olšák <marek.olsak@amd.com>
Thu, 30 Jul 2020 01:43:04 +0000 (21:43 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 7 Aug 2020 15:22:21 +0000 (11:22 -0400)
Based on PAL.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6137>

src/amd/common/ac_gpu_info.c

index 8c9e788ac6402aba4755fabb112d798e90cd55d1..ba6f61ac0f9a3ee01218f965ae647c6cb03637d3 100644 (file)
@@ -540,7 +540,7 @@ bool ac_query_gpu_info(int fd, void *dev_p,
                info->tcc_cache_line_size = 64;
        }
        info->gb_addr_config = amdinfo->gb_addr_cfg;
                info->tcc_cache_line_size = 64;
        }
        info->gb_addr_config = amdinfo->gb_addr_cfg;
-       if (info->chip_class == GFX9) {
+       if (info->chip_class >= GFX9) {
                info->num_tile_pipes = 1 << G_0098F8_NUM_PIPES(amdinfo->gb_addr_cfg);
                info->pipe_interleave_bytes =
                        256 << G_0098F8_PIPE_INTERLEAVE_SIZE_GFX9(amdinfo->gb_addr_cfg);
                info->num_tile_pipes = 1 << G_0098F8_NUM_PIPES(amdinfo->gb_addr_cfg);
                info->pipe_interleave_bytes =
                        256 << G_0098F8_PIPE_INTERLEAVE_SIZE_GFX9(amdinfo->gb_addr_cfg);