From 49958c4b5d0abe703e5aa028253e9f5b0742d695 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Thu, 9 May 2019 20:55:36 -0700 Subject: 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 --- src/mesa/drivers/dri/i965/genX_blorp_exec.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i965/genX_blorp_exec.c') 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 }; -- cgit v1.2.3