aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-02-20 09:27:07 +0100
committerMarge Bot <[email protected]>2020-02-26 07:58:47 +0000
commit4c03d203965c2e88fb7337cf0af6e691517838a9 (patch)
treea3288f46ec0ccaa8d1ce12e78d24ef3fc2a807c7
parent9204ad70f2a49c783a38d926f01a54059bb3461f (diff)
radv: make use of ac_gpu_info::max_wave64_per_simd
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3899> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3899>
-rw-r--r--src/amd/vulkan/radv_device.c7
1 files changed, 1 insertions, 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. */