intel/compiler: Fix non-trivial designated initializer
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 <marcin.slusarz@intel.com>
Fixes: bc4f8c073a
("intel/compiler: inject MUE initialization")
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15360>
This commit is contained in:
parent
d7514c5f04
commit
e5f3689cff
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue