intel: Fix intel_get_mesh_urb_config()
The round up in 'next_address_8kb = DIV_ROUND_UP(push_constant_kb, 8)' was not decreasing the amount of URB available for Mesh and Task, what could cause an over allocation of URB. There was also no minimum entries enforcement for Mesh and Task, what could cause 0 r.mesh_entries to be set in a case where tue_size_dw is 90% > than mue_size_dw. Same for r.task_entries when Task is enabled. Also adding a few more asserts to help debug. This fixes at least dEQP-VK.mesh_shader.ext.properties.mesh_payload_size in LNL but it has potential to fixes other Mesh tests as well. Cc: mesa-stable Signed-off-by:José Roberto de Souza <jose.souza@intel.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <mesa/mesa!27555> (cherry picked from commit d0fba810)
Loading
Please register or sign in to comment