mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
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:
parent
924d1ba9eb
commit
12ea0143de
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue