Mesa (master): ac/gpu_info: fix num_physical_sgprs_per_simd for gfx10

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 30 11:29:01 UTC 2020


Module: Mesa
Branch: master
Commit: 2866a6f78d2714b63bae4b2738e46ca790e53084
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2866a6f78d2714b63bae4b2738e46ca790e53084

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Jun 17 10:55:33 2020 -0400

ac/gpu_info: fix num_physical_sgprs_per_simd for gfx10

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

---

 src/amd/common/ac_gpu_info.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index cbc6ed6faa4..fbaa7657b2c 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -765,11 +765,8 @@ bool ac_query_gpu_info(int fd, void *dev_p,
 	else
 		info->max_wave64_per_simd = 10;
 
-	/* The number is per SIMD. There is enough SGPRs for the maximum number
-	 * of Wave32, which is double the number for Wave64.
-	 */
 	if (info->chip_class >= GFX10) {
-		info->num_physical_sgprs_per_simd = 128 * info->max_wave64_per_simd * 2;
+		info->num_physical_sgprs_per_simd = 128 * info->max_wave64_per_simd;
 		info->min_sgpr_alloc = 128;
 		info->sgpr_alloc_granularity = 128;
 		/* Don't use late alloc on small chips. */



More information about the mesa-commit mailing list