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>
(cherry picked from commit 3e4f73b3a0)
This commit is contained in:
Jordan Justen 2023-10-06 00:48:36 -07:00 committed by Eric Engestrom
parent 41ae715026
commit 68dd5f4860
2 changed files with 7 additions and 3 deletions

View file

@ -4,7 +4,7 @@
"description": "intel/dev: Update hwconfig => max_threads_per_psd for Xe2",
"nominated": true,
"nomination_type": 4,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -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;