mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
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" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit a52ee32a9a)
This commit is contained in:
parent
6227edd978
commit
527cbf088e
1 changed files with 1 additions and 1 deletions
|
|
@ -822,7 +822,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,
|
||||
#if !GEN_IS_HASWELL
|
||||
.ALLAllocation = cfg->n[GEN_L3P_ALL],
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue