summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2018-07-14 04:49:36 +0200
committerRoland Scheidegger <[email protected]>2018-07-16 20:07:53 +0200
commitb3474645d420e6856e488dbb09f6fa1c4ec3a8f0 (patch)
treed8e6b1411d45b57e2319c779b6e63b5622e1fb4d /src/compiler
parentf378fa94b2e13d76fbc16e1cbc03d80dd9053d64 (diff)
nir: fix msvc build
Empty initializer braces aren't valid c (it's a gnu extension, and it's valid in c++). Hopefully fixes appveyor / msvc build... Fixes a3150c1d06ae7766c3d3fe3b33432e55c3c7527e
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_format_convert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_format_convert.h b/src/compiler/nir/nir_format_convert.h
index 33d90f260cd..45532b74884 100644
--- a/src/compiler/nir/nir_format_convert.h
+++ b/src/compiler/nir/nir_format_convert.h
@@ -121,7 +121,7 @@ nir_format_bitcast_uint_vec_unmasked(nir_builder *b, nir_ssa_def *src,
DIV_ROUND_UP(src->num_components * src_bits, dst_bits);
assert(dst_components <= 4);
- nir_ssa_def *dst_chan[4] = { };
+ nir_ssa_def *dst_chan[4] = {0};
if (dst_bits > src_bits) {
unsigned shift = 0;
unsigned dst_idx = 0;