summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2019-03-28 20:33:32 -0600
committerBrian Paul <[email protected]>2019-03-28 20:34:23 -0600
commit4ee057eaef4c8b6e794d03f7b0543aa824a338b8 (patch)
tree35be000d162447a56b990d835d263abaa9ca88c0
parent7832fb78898cf98c02e132609187fce84b5000fd (diff)
nir: use {0} initializer instead of {} to fix MSVC build
Trivial change. Fixes: c6ee46a75 ("nir: Add nir_alu_srcs_negative_equal")
-rw-r--r--src/compiler/nir/nir_instr_set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_instr_set.c b/src/compiler/nir/nir_instr_set.c
index 9aa1f3bbe5e..4963890bf5c 100644
--- a/src/compiler/nir/nir_instr_set.c
+++ b/src/compiler/nir/nir_instr_set.c
@@ -438,7 +438,7 @@ nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
alu1->dest.dest.ssa.bit_size);
}
- uint8_t alu1_swizzle[4] = {};
+ uint8_t alu1_swizzle[4] = {0};
nir_src alu1_actual_src;
const struct nir_alu_instr *const neg1 = get_neg_instr(&alu1->src[src1].src);
@@ -455,7 +455,7 @@ nir_alu_srcs_negative_equal(const nir_alu_instr *alu1,
alu1_swizzle[i] = i;
}
- uint8_t alu2_swizzle[4] = {};
+ uint8_t alu2_swizzle[4] = {0};
nir_src alu2_actual_src;
const struct nir_alu_instr *const neg2 = get_neg_instr(&alu2->src[src2].src);