mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02:00
anv: Put MOCS in the correct location
My patch to switch from struct-based MOCS to numeric MOCS accidentally divided all MOCS entries by 2 in the Vulkan driver. MOCS on Gen9+ is just an array index into a table. But in the hardware packets, the index starts at bit 1. So we need to shift it. Fixes:0b44644ca6(genxml: Consistently use a numeric "MOCS" field) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> (cherry picked from commit39aee57523)
This commit is contained in:
parent
59812ac38d
commit
1039285288
1 changed files with 2 additions and 2 deletions
|
|
@ -1449,10 +1449,10 @@ _anv_combine_address(struct anv_batch *batch, void *location,
|
|||
*/
|
||||
|
||||
/* TC=LLC/eLLC, LeCC=WB, LRUM=3, L3CC=WB */
|
||||
#define GEN9_MOCS 2
|
||||
#define GEN9_MOCS (2 << 1)
|
||||
|
||||
/* TC=LLC/eLLC, LeCC=WB, LRUM=3, L3CC=WB */
|
||||
#define GEN9_EXTERNAL_MOCS 1
|
||||
#define GEN9_EXTERNAL_MOCS (1 << 1)
|
||||
|
||||
/* Cannonlake MOCS defines are duplicates of Skylake MOCS defines. */
|
||||
#define GEN10_MOCS GEN9_MOCS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue