Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Co-Authored-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14297>
}
}
- if (devinfo->ver == 12 && devinfo->num_slices == 1) {
+ if (devinfo->verx10 >= 125) {
+ if (devinfo->subslice_total > 16) {
+ assert(devinfo->subslice_total <= 32);
+ devinfo->l3_banks = 32;
+ } else if (devinfo->subslice_total > 8) {
+ devinfo->l3_banks = 16;
+ } else {
+ devinfo->l3_banks = 8;
+ }
+ } else {
+ assert(devinfo->num_slices == 1);
if (devinfo->subslice_total >= 6) {
assert(devinfo->subslice_total == 6);
devinfo->l3_banks = 8;