mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 20:20:18 +01:00
intel/devinfo: Compute the correct L3$ size for Gen12
Fixes: 8125d7960b "intel/dev: Add preliminary device info for Tigerlake"
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Clayton Craft <clayton.a.craft@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4782>
This commit is contained in:
parent
7262c743dc
commit
86f67952d3
1 changed files with 11 additions and 0 deletions
|
|
@ -1201,6 +1201,17 @@ update_from_topology(struct gen_device_info *devinfo,
|
|||
}
|
||||
}
|
||||
|
||||
if (devinfo->gen == 12 && devinfo->num_slices == 1) {
|
||||
if (n_subslices >= 6) {
|
||||
assert(n_subslices == 6);
|
||||
devinfo->l3_banks = 8;
|
||||
} else if (n_subslices > 2) {
|
||||
devinfo->l3_banks = 6;
|
||||
} else {
|
||||
devinfo->l3_banks = 4;
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t eu_mask_len =
|
||||
topology->eu_stride * topology->max_subslices * topology->max_slices;
|
||||
assert(sizeof(devinfo->eu_masks) >= eu_mask_len);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue