intel: Add and use max_constant_urb_size_kb

This knowledge was repeated in multiple places so move the values to
intel_device_info struct.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13014>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2021-09-23 22:59:40 -07:00
committed by Marge Bot
parent f349c8ab4b
commit 37f03e89f2
7 changed files with 17 additions and 18 deletions
+1 -2
View File
@@ -87,8 +87,7 @@ intel_get_urb_config(const struct intel_device_info *devinfo,
if (devinfo->ver >= 12)
urb_size_kB -= 4 * devinfo->l3_banks;
const unsigned push_constant_kB =
(devinfo->ver >= 8 || (devinfo->is_haswell && devinfo->gt == 3)) ? 32 : 16;
const unsigned push_constant_kB = devinfo->max_constant_urb_size_kb;
const bool active[4] = { true, tess_present, tess_present, gs_present };