From e5f3689cfff9e4eb7166e7f354d754354c11e7be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ernst=20Sj=C3=B6strand?= Date: Sat, 12 Mar 2022 17:24:11 +0100 Subject: [PATCH] intel/compiler: Fix non-trivial designated initializer MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Not supported by GCC 7. src/compiler/nir/nir_builder_opcodes.h:14156:118: sorry, unimplemented: non-trivial designated initializers not supported src/intel/compiler/brw_mesh.cpp:515:7: note: in expansion of macro ‘nir_store_per_primitive_output’ Reviewed-by: Marcin Ślusarz Fixes: bc4f8c073a2 ("intel/compiler: inject MUE initialization") Signed-off-by: Ernst Sjöstrand Part-of: --- src/intel/compiler/brw_mesh.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/compiler/brw_mesh.cpp b/src/intel/compiler/brw_mesh.cpp index f31c83c..190c60e 100644 --- a/src/intel/compiler/brw_mesh.cpp +++ b/src/intel/compiler/brw_mesh.cpp @@ -515,6 +515,7 @@ brw_nir_initialize_mue(nir_shader *nir, nir_store_per_primitive_output(&b, zerovec, prim, dw_off, .base = (int)map->per_primitive_start_dw, .write_mask = WRITEMASK_XYZW, + .component = 0, .src_type = nir_type_uint32); } @@ -535,6 +536,7 @@ brw_nir_initialize_mue(nir_shader *nir, nir_store_per_primitive_output(&b, zerovec, prim, dw_off, .base = (int)map->per_primitive_start_dw, .write_mask = WRITEMASK_XYZW, + .component = 0, .src_type = nir_type_uint32); } nir_pop_if(&b, if_stmt); -- 2.7.4