projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f378fa9
)
nir: fix msvc build
author
Roland Scheidegger
<sroland@vmware.com>
Sat, 14 Jul 2018 02:49:36 +0000
(
04:49
+0200)
committer
Roland Scheidegger
<sroland@vmware.com>
Mon, 16 Jul 2018 18:07:53 +0000
(20:07 +0200)
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
src/compiler/nir/nir_format_convert.h
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_format_convert.h
b/src/compiler/nir/nir_format_convert.h
index 33d90f260cdee0c67071549c996a6c14012081f7..45532b74884f6542dfdd676834d8afaa899ca673 100644
(file)
--- 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;