radv: use radeon_info::num_good_cu_per_sh
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 29 Oct 2018 10:37:01 +0000 (11:37 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 1 Nov 2018 07:49:08 +0000 (08:49 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c

index 6367c732dbb3b424bebf33ca49b11e1780186249..d68111c25bf7dc89bad91df811d37e388df0feed 100644 (file)
@@ -1098,9 +1098,7 @@ void radv_GetPhysicalDeviceProperties2(
                        properties->shaderArraysPerEngineCount =
                                pdevice->rad_info.max_sh_per_se;
                        properties->computeUnitsPerShaderArray =
-                               pdevice->rad_info.num_good_compute_units /
-                                       (pdevice->rad_info.max_se *
-                                        pdevice->rad_info.max_sh_per_se);
+                               pdevice->rad_info.num_good_cu_per_sh;
                        properties->simdPerComputeUnit = 4;
                        properties->wavefrontsPerSimd =
                                pdevice->rad_info.family == CHIP_TONGA ||