Commit a52ee32a authored by Jonas Kulla's avatar Jonas Kulla Committed by Jason Ekstrand

anv: Fix L3 cache programming on Bay Trail

Valid values for URBAllocation start at 32, so substract that
before programming the register.

This was missed when porting from the GL driver.

Cc: "17.1" <>
Reviewed-by: Francisco Jerez's avatarFrancisco Jerez <>
Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <>
parent 3fc99f12
......@@ -835,7 +835,7 @@ genX(cmd_buffer_config_l3)(struct anv_cmd_buffer *cmd_buffer,
anv_pack_struct(&l3cr2, GENX(L3CNTLREG2),
.SLMEnable = has_slm,
.URBLowBandwidth = urb_low_bw,
.URBAllocation = cfg->n[GEN_L3P_URB],
.URBAllocation = cfg->n[GEN_L3P_URB] - n0_urb,
.ALLAllocation = cfg->n[GEN_L3P_ALL],
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment