radv/gfx10: adjust the number of simd per compute unit
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Feb 2020 08:24:38 +0000 (09:24 +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>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3899>

src/amd/vulkan/radv_device.c

index be84c2793a0a353ffd487323f220c04d346588e8..1a2bf67a3523368f71c2165e62887cd5248c587e 100644 (file)
@@ -1656,7 +1656,8 @@ void radv_GetPhysicalDeviceProperties2(
                                pdevice->rad_info.max_sh_per_se;
                        properties->computeUnitsPerShaderArray =
                                pdevice->rad_info.num_good_cu_per_sh;
-                       properties->simdPerComputeUnit = 4;
+                       properties->simdPerComputeUnit =
+                               pdevice->rad_info.num_simd_per_compute_unit;
                        properties->wavefrontsPerSimd =
                                pdevice->rad_info.family == CHIP_TONGA ||
                                pdevice->rad_info.family == CHIP_ICELAND ||