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

Author: Tapani Pälli <[email protected]>
Date:   Wed Apr  5 08:40:46 2023 +0300

intel/common: limit the amount of SLM with Wa_14017341140

Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22307>

---

 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 6b9e121a065..a2dbbddd70f 100644
--- a/src/intel/common/intel_genX_state.h
+++ b/src/intel/common/intel_genX_state.h
@@ -131,6 +131,9 @@ intel_set_ps_dispatch_state(struct GENX(3DSTATE_PS) *ps,
 UNUSED static int
 preferred_slm_allocation_size(const struct intel_device_info *devinfo)
 {
+   if (intel_needs_workaround(devinfo, 14017341140))
+      return SLM_ENCODES_96K;
+
    return 0;
 }
 

Reply via email to