Module: Mesa
Branch: main
Commit: ed5ff8f297624924cf36aa126181166ed1e520d9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed5ff8f297624924cf36aa126181166ed1e520d9

Author: Anuj Phogat <anuj.pho...@gmail.com>
Date:   Tue Jun  2 10:30:28 2020 -0700

intel/l3: Adjust URB weight calculation for gfx12.5+.

Gfx12.5+ devices use special-purpose memory for the URB instead of
requiring a portion of the L3 to be carved out.

Signed-off-by: Anuj Phogat <anuj.pho...@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25493>

---

 src/intel/common/intel_l3_config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/common/intel_l3_config.c 
b/src/intel/common/intel_l3_config.c
index 4f9da3eca3c..fbeedaf50fa 100644
--- a/src/intel/common/intel_l3_config.c
+++ b/src/intel/common/intel_l3_config.c
@@ -262,7 +262,7 @@ intel_get_default_l3_weights(const struct intel_device_info 
*devinfo,
    struct intel_l3_weights w = {{ 0 }};
 
    w.w[INTEL_L3P_SLM] = devinfo->ver < 11 && needs_slm;
-   w.w[INTEL_L3P_URB] = 1.0;
+   w.w[INTEL_L3P_URB] = devinfo->verx10 < 125 ? 1.0 : 0.0;
 
    if (devinfo->ver >= 8) {
       w.w[INTEL_L3P_ALL] = 1.0;

Reply via email to