intel/l3: Make DG1 urb-size exception more generic

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14136>
This commit is contained in:
Jordan Justen 2021-12-09 10:11:37 -08:00 committed by Marge Bot
parent c7fa15b381
commit fd2a558bf8
1 changed files with 7 additions and 2 deletions

View File

@ -351,9 +351,14 @@ unsigned
intel_get_l3_config_urb_size(const struct intel_device_info *devinfo,
const struct intel_l3_config *cfg)
{
/* We don't have to program the URB size in DG1, it's a fixed value. */
if (devinfo->platform == INTEL_PLATFORM_DG1)
/* We don't have to program the URB size for some platforms. It's a fixed
* value.
*/
if (cfg == NULL) {
ASSERTED const struct intel_l3_list *const list = get_l3_list(devinfo);
assert(list->length == 0);
return devinfo->urb.size;
}
/* From the SKL "L3 Allocation and Programming" documentation:
*