From e7c409cd29b1c4e58627b04cd725932d1a181d41 Mon Sep 17 00:00:00 2001 From: Simon Perretta Date: Tue, 30 Sep 2025 18:21:00 +0100 Subject: [PATCH] pvr: amend num temps calculation when wg_size is not provided Fixes: 7a32dc673ba ("pvr: add device info and functions for calculating ava...") Signed-off-by: Simon Perretta Acked-by: Frank Binns Part-of: --- src/imagination/include/hwdef/rogue_hw_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imagination/include/hwdef/rogue_hw_utils.h b/src/imagination/include/hwdef/rogue_hw_utils.h index b81edccd7fa..d14f0e20588 100644 --- a/src/imagination/include/hwdef/rogue_hw_utils.h +++ b/src/imagination/include/hwdef/rogue_hw_utils.h @@ -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. */