Mesa (master): ac: set the number of SDPs same as the number of TCCs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Sep 30 17:40:01 UTC 2019


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Thu Sep 19 22:17:30 2019 -0400

ac: set the number of SDPs same as the number of TCCs

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/common/ac_gpu_info.c | 16 +++-------------
 1 file changed, 3 insertions(+), 13 deletions(-)

diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 689ef2740f3..885206fbe78 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -630,19 +630,9 @@ bool ac_query_gpu_info(int fd, void *dev_p,
 		}
 	}
 
-	if (info->chip_class >= GFX10) {
-		switch (info->family) {
-		case CHIP_NAVI10:
-		case CHIP_NAVI12:
-			info->num_sdp_interfaces = 16;
-			break;
-		case CHIP_NAVI14:
-			info->num_sdp_interfaces = 8;
-			break;
-		default:
-			assert(0);
-		}
-	}
+	/* The number of SDPs is the same as the number of TCCs for now. */
+	if (info->chip_class >= GFX10)
+		info->num_sdp_interfaces = device_info.num_tcc_blocks;
 
 	info->max_wave64_per_simd = info->family >= CHIP_POLARIS10 &&
 				    info->family <= CHIP_VEGAM ? 8 : 10;




More information about the mesa-commit mailing list