Mesa (master): ac/gpu_info: set num_tiles_pipes on gfx10+ too
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 7 17:26:07 UTC 2020
Module: Mesa
Branch: master
Commit: 15bd3f3712a2aa0fb9d550edc7b4a6a35a015b42
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15bd3f3712a2aa0fb9d550edc7b4a6a35a015b42
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Jul 29 21:43:04 2020 -0400
ac/gpu_info: set num_tiles_pipes on gfx10+ too
Based on PAL.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6137>
---
src/amd/common/ac_gpu_info.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the mesa-commit
mailing list