aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/winsys
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-06-04 15:03:11 +0100
committerMarge Bot <[email protected]>2020-06-08 10:26:59 +0000
commit1234faa7bf1519f575fc7d06b75fc4b249f54a49 (patch)
treeff1b60bf290e92f03261b0ca026bbbec57985843 /src/amd/vulkan/winsys
parent86f21e4eba7ad980109f13bd5480c02593ca19fe (diff)
ac/gpu_info, radv: set max_wave64_per_simd to 20 on GFX10
Fixes RADV max_waves reporting for GFX10 Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5356>
Diffstat (limited to 'src/amd/vulkan/winsys')
-rw-r--r--src/amd/vulkan/winsys/null/radv_null_winsys.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/amd/vulkan/winsys/null/radv_null_winsys.c b/src/amd/vulkan/winsys/null/radv_null_winsys.c
index fa23ba1d10a..cb9a10d51f9 100644
--- a/src/amd/vulkan/winsys/null/radv_null_winsys.c
+++ b/src/amd/vulkan/winsys/null/radv_null_winsys.c
@@ -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;