Mesa (master): intel/l3: Return the URB size from devinfo for DG1
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 22 21:04:12 UTC 2020
Module: Mesa
Branch: master
Commit: 86617c08cc928563509a7f8eea4922044610e77b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=86617c08cc928563509a7f8eea4922044610e77b
Author: Rafael Antognolli <rafael.antognolli at intel.com>
Date: Fri Nov 15 15:49:13 2019 -0800
intel/l3: Return the URB size from devinfo for DG1
We don't have any URB size set in the L3 config, since it's a fixed
value now. So just return the value that we know from gen_device_info.
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956>
---
src/intel/common/gen_l3_config.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/intel/common/gen_l3_config.c b/src/intel/common/gen_l3_config.c
index 059a1ed7c14..347d7976226 100644
--- a/src/intel/common/gen_l3_config.c
+++ b/src/intel/common/gen_l3_config.c
@@ -371,6 +371,10 @@ unsigned
gen_get_l3_config_urb_size(const struct gen_device_info *devinfo,
const struct gen_l3_config *cfg)
{
+ /* We don't have to program the URB size in DG1, it's a fixed value. */
+ if (devinfo->is_dg1)
+ return devinfo->urb.size;
+
/* From the SKL "L3 Allocation and Programming" documentation:
*
* "URB is limited to 1008KB due to programming restrictions. This is not
More information about the mesa-commit
mailing list