From 5250128c6a48211d71e17eb90fb827815371c40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 22 Aug 2024 06:49:39 -0400 Subject: [PATCH] ac: fix WAVES_PER_SH value for gfx12 not a serious issue because we only use it for PRIME without SDMA IIRC Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/common/ac_gpu_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c index 833d4ed9f4f..bd417de62a2 100644 --- a/src/amd/common/ac_gpu_info.c +++ b/src/amd/common/ac_gpu_info.c @@ -2342,6 +2342,10 @@ ac_get_compute_resource_limits(const struct radeon_info *info, unsigned waves_pe info->max_waves_per_simd; } + /* On GFX12+, WAVES_PER_SH means waves per SE. */ + if (info->gfx_level >= GFX12) + max_waves_per_sh *= info->max_sa_per_se; + /* Force even distribution on all SIMDs in CU if the workgroup * size is 64. This has shown some good improvements if # of CUs * per SE is not a multiple of 4.