Commit 86f67952 authored by Jason Ekstrand's avatar Jason Ekstrand Committed by Marge Bot

intel/devinfo: Compute the correct L3$ size for Gen12

Fixes: 8125d796 "intel/dev: Add preliminary device info for Tigerlake"
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
Tested-by: clayton craft's avatarClayton Craft <clayton.a.craft@intel.com>
Part-of: <mesa/mesa!4782>
parent 7262c743
...@@ -1201,6 +1201,17 @@ update_from_topology(struct gen_device_info *devinfo, ...@@ -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 = uint32_t eu_mask_len =
topology->eu_stride * topology->max_subslices * topology->max_slices; topology->eu_stride * topology->max_subslices * topology->max_slices;
assert(sizeof(devinfo->eu_masks) >= eu_mask_len); assert(sizeof(devinfo->eu_masks) >= eu_mask_len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment