mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
intel/dev: Fix warning for max_threads_per_psd when devinfo->verx10 == 120
Although we don't want to rely on hwconfig for devinfo->verx10 == 120,
due to the dependence on closed source software, we do check to see if
hwconfig reports different values in the DEVINFO_HWCONFIG macro.
Matt was seeing this warning on 8086:a7a0:
> MESA: warning: INTEL_HWCONFIG_TOTAL_PS_THREADS (128) != devinfo->max_threads_per_psd (64)
Reported-by: Matt Turner <mattst88@gmail.com>
Fixes: 3e4f73b3a0 ("intel/dev: Update hwconfig => max_threads_per_psd for Xe2")
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31077>
This commit is contained in:
parent
27c09eacb7
commit
c5c349a690
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ apply_hwconfig_item(struct intel_device_info *devinfo,
|
|||
break; /* ignore */
|
||||
case INTEL_HWCONFIG_TOTAL_PS_THREADS: {
|
||||
unsigned threads = item->val[0];
|
||||
if (devinfo->verx10 == 125)
|
||||
if (devinfo->ver == 12)
|
||||
threads /= 2;
|
||||
DEVINFO_HWCONFIG(max_threads_per_psd, threads);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue