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.phogat@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25493>
This commit is contained in:
Anuj Phogat 2020-06-02 10:30:28 -07:00 committed by Francisco Jerez
parent 6b9583734b
commit ed5ff8f297

View file

@ -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;