radv: make use of ac_gpu_info::max_wave64_per_simd
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Feb 2020 08:27:07 +0000 (09:27 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 26 Feb 2020 07:58:47 +0000 (07:58 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@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

index a03cf11..a130952 100644 (file)
@@ -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. */