Fixes:
c93cbc77f78 ("intel/common: Add helper for URB allocation in Mesh pipeline")
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16196>
task_urb_share = task_urb_share_percentage / 100.0f;
}
- const unsigned task_urb_kb = ALIGN(total_urb_kb * task_urb_share, 8);
+ const unsigned one_task_urb_kb = ALIGN(r.task_entry_size_64b * 64, 1024) / 1024;
+
+ const unsigned task_urb_kb = ALIGN(MAX2(total_urb_kb * task_urb_share, one_task_urb_kb), 8);
+
const unsigned mesh_urb_kb = total_urb_kb - task_urb_kb;
/* TODO(mesh): Could we avoid allocating URB for Mesh if rasterization is