ac/gpu_info, radv: set max_wave64_per_simd to 20 on GFX10
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 4 Jun 2020 14:03:11 +0000 (15:03 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 8 Jun 2020 10:26:59 +0000 (10:26 +0000)
Fixes RADV max_waves reporting for GFX10

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5356>

src/amd/common/ac_gpu_info.c
src/amd/vulkan/winsys/null/radv_null_winsys.c

index ba129dcee747e34f0c7e2a4a00b51061c99c09d6..c1510c3c4f83acee987ccbacb9bb7c8ba793bcc4 100644 (file)
@@ -739,8 +739,12 @@ bool ac_query_gpu_info(int fd, void *dev_p,
        if (info->chip_class >= GFX10)
                info->num_sdp_interfaces = device_info.num_tcc_blocks;
 
-       info->max_wave64_per_simd = info->family >= CHIP_POLARIS10 &&
-                                   info->family <= CHIP_VEGAM ? 8 : 10;
+       if (info->chip_class >= GFX10)
+               info->max_wave64_per_simd = 20;
+       else if (info->family >= CHIP_POLARIS10 && info->family <= CHIP_VEGAM)
+               info->max_wave64_per_simd = 8;
+       else
+               info->max_wave64_per_simd = 10;
 
        /* The number is per SIMD. There is enough SGPRs for the maximum number
         * of Wave32, which is double the number for Wave64.
index fa23ba1d10a0611a3a6cd449ba3687fdff2bc7fa..cb9a10d51f95c8c4fa1313e6de1f1e9db2aaf0df 100644 (file)
@@ -101,8 +101,12 @@ static void radv_null_winsys_query_info(struct radeon_winsys *rws,
        info->pci_id = gpu_info[info->family].pci_id;
        info->has_syncobj_wait_for_submit = true;
        info->max_se = 4;
-       info->max_wave64_per_simd = info->family >= CHIP_POLARIS10 &&
-                                   info->family <= CHIP_VEGAM ? 8 : 10;
+       if (info->chip_class >= GFX10)
+               info->max_wave64_per_simd = 20;
+       else if (info->family >= CHIP_POLARIS10 && info->family <= CHIP_VEGAM)
+               info->max_wave64_per_simd = 8;
+       else
+               info->max_wave64_per_simd = 10;
 
        if (info->chip_class >= GFX10)
                info->num_physical_sgprs_per_simd = 128 * info->max_wave64_per_simd * 2;