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:
committed by
Marge Bot
parent
f349c8ab4b
commit
37f03e89f2
@@ -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 };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user