From: Caio Marcelo de Oliveira Filho Date: Sat, 23 Feb 2019 06:38:05 +0000 (-0800) Subject: nir: fix MSVC build X-Git-Tag: upstream/19.3.0~8777 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c160b6bd8782a95516d78e039b0f070b4026b5d;p=platform%2Fupstream%2Fmesa.git nir: fix MSVC build Zero initialize struct with {0} instead of {}. --- diff --git a/src/compiler/nir/nir_opt_copy_prop_vars.c b/src/compiler/nir/nir_opt_copy_prop_vars.c index 27e320e..61f3dd8 100644 --- a/src/compiler/nir/nir_opt_copy_prop_vars.c +++ b/src/compiler/nir/nir_opt_copy_prop_vars.c @@ -835,7 +835,7 @@ copy_prop_vars_block(struct copy_prop_var_state *state, */ kill_aliases(copies, nir_deref_instr_parent(dst), 0xf); } else { - struct value value = {}; + struct value value = {0}; value_set_ssa_components(&value, intrin->src[1].ssa, intrin->num_components); unsigned wrmask = nir_intrinsic_write_mask(intrin);