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 <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30869>
This commit is contained in:
Marek Olšák
2024-08-22 06:49:39 -04:00
committed by Marge Bot
parent 1753bf599c
commit 5250128c6a

View File

@@ -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.