From: Jordan Justen Date: Fri, 10 May 2019 03:55:36 +0000 (-0700) Subject: i965/blorp: Set MOCS for gen11 in blorp_alloc_vertex_buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=49958c4b5d0abe703e5aa028253e9f5b0742d695;p=mesa.git 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 Reviewed-by: Anuj Phogat --- diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index b0572438efc..a838fd6e020 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -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 };