radv: fix max_waves estimation on GFX10.3

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8523>
This commit is contained in:
Rhys Perry 2021-01-19 10:59:47 +00:00 committed by Marge Bot
parent 924d1ba9eb
commit 12ea0143de

View file

@ -1578,6 +1578,8 @@ radv_get_max_waves(struct radv_device *device,
if (conf->num_vgprs) {
unsigned vgprs = align(conf->num_vgprs, wave_size == 32 ? 8 : 4);
if (chip_class >= GFX10_3)
vgprs = align(vgprs, wave_size == 32 ? 16 : 8);
max_simd_waves =
MIN2(max_simd_waves,
device->physical_device->rad_info.num_physical_wave64_vgprs_per_simd / vgprs);