summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2023-10-06 00:48:36 -0700
committerJordan Justen <jordan.l.justen@intel.com>2024-08-30 01:53:55 -0700
commit3e4f73b3a0e0b9420f9614d3e271c49225c6f5d3 (patch)
tree5181e70407a76ba107f45c3ba34ba87807faa5bf
parent588a65f29a9fc46b8b1700575bb60108a8f264e4 (diff)
intel/dev: Update hwconfig => max_threads_per_psd for Xe2
Backport-to: 24.2 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30887>
-rw-r--r--src/intel/dev/intel_hwconfig.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/intel/dev/intel_hwconfig.c b/src/intel/dev/intel_hwconfig.c
index d8ec93be207..7ec8ac387eb 100644
--- a/src/intel/dev/intel_hwconfig.c
+++ b/src/intel/dev/intel_hwconfig.c
@@ -217,9 +217,13 @@ apply_hwconfig_item(struct intel_device_info *devinfo,
break;
case INTEL_HWCONFIG_TOTAL_VS_THREADS_POCS:
break; /* ignore */
- case INTEL_HWCONFIG_TOTAL_PS_THREADS:
- DEVINFO_HWCONFIG(max_threads_per_psd, item->val[0] / 2);
+ case INTEL_HWCONFIG_TOTAL_PS_THREADS: {
+ unsigned threads = item->val[0];
+ if (devinfo->verx10 == 125)
+ threads /= 2;
+ DEVINFO_HWCONFIG(max_threads_per_psd, threads);
break;
+ }
case INTEL_HWCONFIG_URB_SIZE_PER_SLICE_IN_KB:
DEVINFO_HWCONFIG(urb.size, item->val[0]);
break;