summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_search.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-04-21 18:00:21 -0700
committerJason Ekstrand <[email protected]>2015-05-08 17:16:13 -0700
commit300d72943675a49091ecb49597b56f7bdfefd22d (patch)
tree9efa3cfdbeeed2f59a99432681b503c4c965ecc1 /src/glsl/nir/nir_search.c
parent6702ebce5760aae0eb15f410c2a83b6e893b005c (diff)
nir: Add and use initializer #defines for nir_src and nir_dest
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_search.c')
-rw-r--r--src/glsl/nir/nir_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_search.c b/src/glsl/nir/nir_search.c
index 5ba016085fc..490b31ffe8a 100644
--- a/src/glsl/nir/nir_search.c
+++ b/src/glsl/nir/nir_search.c
@@ -276,7 +276,7 @@ construct_value(const nir_search_value *value, nir_alu_type type,
const nir_search_variable *var = nir_search_value_as_variable(value);
assert(state->variables_seen & (1 << var->variable));
- nir_alu_src val;
+ nir_alu_src val = { NIR_SRC_INIT };
nir_alu_src_copy(&val, &state->variables[var->variable], mem_ctx);
assert(!var->is_constant);