From: Marek Olšák Date: Thu, 30 Jul 2020 01:43:04 +0000 (-0400) Subject: ac/gpu_info: set num_tiles_pipes on gfx10+ too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=15bd3f3712a2aa0fb9d550edc7b4a6a35a015b42;p=mesa.git ac/gpu_info: set num_tiles_pipes on gfx10+ too Based on PAL. Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 8c9e788ac64..ba6f61ac0f9 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -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; - 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);