diff options
author | Jason Ekstrand <[email protected]> | 2015-04-21 18:00:21 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-05-08 17:16:13 -0700 |
commit | 300d72943675a49091ecb49597b56f7bdfefd22d (patch) | |
tree | 9efa3cfdbeeed2f59a99432681b503c4c965ecc1 /src/glsl/nir/nir_search.c | |
parent | 6702ebce5760aae0eb15f410c2a83b6e893b005c (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.c | 2 |
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); |