Mesa (master): radv: make use of ac_gpu_info::max_wave64_per_simd
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Feb 26 08:20:16 UTC 2020
Module: Mesa
Branch: master
Commit: 4c03d203965c2e88fb7337cf0af6e691517838a9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c03d203965c2e88fb7337cf0af6e691517838a9
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Thu Feb 20 09:27:07 2020 +0100
radv: make use of ac_gpu_info::max_wave64_per_simd
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3899>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3899>
---
src/amd/vulkan/radv_device.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index a03cf11691c..a130952e88f 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -1659,12 +1659,7 @@ void radv_GetPhysicalDeviceProperties2(
properties->simdPerComputeUnit =
pdevice->rad_info.num_simd_per_compute_unit;
properties->wavefrontsPerSimd =
- pdevice->rad_info.family == CHIP_TONGA ||
- pdevice->rad_info.family == CHIP_ICELAND ||
- pdevice->rad_info.family == CHIP_POLARIS10 ||
- pdevice->rad_info.family == CHIP_POLARIS11 ||
- pdevice->rad_info.family == CHIP_POLARIS12 ||
- pdevice->rad_info.family == CHIP_VEGAM ? 8 : 10;
+ pdevice->rad_info.max_wave64_per_simd;
properties->wavefrontSize = 64;
/* SGPR. */
More information about the mesa-commit
mailing list