pvr: amend num temps calculation when wg_size is not provided

Fixes: 7a32dc673b ("pvr: add device info and functions for calculating ava...")
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37724>
This commit is contained in:
Simon Perretta
2025-09-30 18:21:00 +01:00
parent 1c1bc876fb
commit e7c409cd29
@@ -449,7 +449,7 @@ rogue_max_wg_temps(const struct pvr_device_info *dev_info,
{
assert(wg_size <= rogue_get_max_total_instances(dev_info));
if (!wg_size)
return rogue_get_compute_max_work_group_size(dev_info);
wg_size = rogue_get_compute_max_work_group_size(dev_info);
if (wg_size > ROGUE_MAX_INSTANCES_PER_TASK && has_barrier) {
/* Number of slots allocated for each workgroup. */