intel/common: limit the amount of SLM with Wa_14017341140
authorTapani Pälli <tapani.palli@intel.com>
Wed, 5 Apr 2023 05:40:46 +0000 (08:40 +0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Apr 2023 10:54:47 +0000 (10:54 +0000)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22307>

src/intel/common/intel_genX_state.h

index 6b9e121..a2dbbdd 100644 (file)
@@ -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;
 }