mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
i965/blorp: Set MOCS for gen11 in blorp_alloc_vertex_buffer
v2: * Add build error for gen > 6 if MOCS is not set. (Lionel) Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
parent
bb5db02bab
commit
49958c4b5d
1 changed files with 5 additions and 1 deletions
|
|
@ -183,7 +183,9 @@ blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size,
|
|||
*/
|
||||
.reloc_flags = RELOC_32BIT,
|
||||
|
||||
#if GEN_GEN == 10
|
||||
#if GEN_GEN == 11
|
||||
.mocs = ICL_MOCS_WB,
|
||||
#elif GEN_GEN == 10
|
||||
.mocs = CNL_MOCS_WB,
|
||||
#elif GEN_GEN == 9
|
||||
.mocs = SKL_MOCS_WB,
|
||||
|
|
@ -191,6 +193,8 @@ blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size,
|
|||
.mocs = BDW_MOCS_WB,
|
||||
#elif GEN_GEN == 7
|
||||
.mocs = GEN7_MOCS_L3,
|
||||
#elif GEN_GEN > 6
|
||||
#error "Missing MOCS setting!"
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue