anv: Allow larger SLM sizes for task and mesh shader

It was hard-coded to 64k but Xe2 platforms and newer supports
larger SLM sizes.

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Dylan Baker <dylan.c.baker@intel.com>
Cc: mesa-stable
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit 7ac9ac0f93)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33113>
This commit is contained in:
José Roberto de Souza
2025-01-03 13:15:00 -08:00
committed by Dylan Baker
parent e275442e8f
commit 6cb52a8838
2 changed files with 2 additions and 2 deletions

View File

@@ -1444,7 +1444,7 @@
"description": "anv: Allow larger SLM sizes for task and mesh shader",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View File

@@ -1685,7 +1685,7 @@ get_properties(const struct anv_physical_device *pdevice,
/* Bounded by the maximum representable size in
* 3DSTATE_MESH_SHADER_BODY::SharedLocalMemorySize. Same for Task.
*/
const uint32_t max_slm_size = 64 * 1024;
const uint32_t max_slm_size = intel_device_info_get_max_slm_size(devinfo);
/* Bounded by the maximum representable size in
* 3DSTATE_MESH_SHADER_BODY::LocalXMaximum. Same for Task.