projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d99fda1
)
nir: Fix array initializer.
author
Jose Fonseca
<jfonseca@vmware.com>
Wed, 24 Oct 2018 10:33:09 +0000
(11:33 +0100)
committer
Jose Fonseca
<jfonseca@vmware.com>
Wed, 24 Oct 2018 10:37:09 +0000
(11:37 +0100)
Empty initializer is not standard C. This fixes MSVC build.
Trivial.
src/compiler/nir/nir_linking_helpers.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_linking_helpers.c
b/src/compiler/nir/nir_linking_helpers.c
index ca46a6b71b02e99bf960ff7a2066c56c8efd760d..de6f2481def805ceb3aaabb8a5b7ea104296f978 100644
(file)
--- a/
src/compiler/nir/nir_linking_helpers.c
+++ b/
src/compiler/nir/nir_linking_helpers.c
@@
-531,7
+531,7
@@
nir_compact_varyings(nir_shader *producer, nir_shader *consumer,
void
nir_link_xfb_varyings(nir_shader *producer, nir_shader *consumer)
{
- nir_variable *input_vars[MAX_VARYING] = {};
+ nir_variable *input_vars[MAX_VARYING] = {
0
};
nir_foreach_variable(var, &consumer->inputs) {
if (var->data.location >= VARYING_SLOT_VAR0 &&