mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
ab22fb488b
commit
83da7dc487
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue