intel/dev: Recalculate max_cs_threads after applying hwconfig changes

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13866>
This commit is contained in:
Jordan Justen 2022-01-06 17:30:21 -08:00 committed by Marge Bot
parent ab22fb488b
commit 83da7dc487

View file

@ -278,6 +278,12 @@ intel_apply_hwconfig_table(struct intel_device_info *devinfo,
{
intel_process_hwconfig_table(devinfo, hwconfig, hwconfig_len,
apply_hwconfig_item);
/* After applying hwconfig values, some items need to be recalculated. */
if (devinfo->apply_hwconfig) {
devinfo->max_cs_threads =
devinfo->max_eus_per_subslice * devinfo->num_thread_per_eu;
}
}
static void