Module: Mesa
Branch: main
Commit: cc2dce82bccef458b03804f7c9fec654a1d54f32
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cc2dce82bccef458b03804f7c9fec654a1d54f32

Author: Rohan Garg <[email protected]>
Date:   Tue Oct 11 17:20:04 2022 +0200

intel: Set a preferred SLM size for LNL

Signed-off-by: Rohan Garg <[email protected]>
Reviewed-by: Caio Oliveira <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26390>

---

 src/intel/common/intel_genX_state.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/intel/common/intel_genX_state.h 
b/src/intel/common/intel_genX_state.h
index 3a3ef86066e..2b0f85d971a 100644
--- a/src/intel/common/intel_genX_state.h
+++ b/src/intel/common/intel_genX_state.h
@@ -134,6 +134,9 @@ preferred_slm_allocation_size(const struct 
intel_device_info *devinfo)
    if (intel_needs_workaround(devinfo, 14017245111))
       return SLM_ENCODES_96K;
 
+   if (devinfo->platform == INTEL_PLATFORM_LNL && devinfo->revision == 0)
+      return SLM_ENCODES_128K;
+
    return 0;
 }
 

Reply via email to