diff options
author | Jordan Justen <[email protected]> | 2017-10-02 00:14:51 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2017-10-25 12:36:21 -0700 |
commit | 78550869a1e0892e7950eafcde805e8b9e749801 (patch) | |
tree | 2af44472456f6338853045fdfb0e3b6fa3f2ce9b /src/compiler | |
parent | b35e8c3b868a2c8ba086cc8667fee2736e157fad (diff) |
nir: Zero nir_load_const_instr::value for valgrind & nir_serialize
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/nir/nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index fe484516947..7380bf436a8 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -480,7 +480,7 @@ nir_load_const_instr * nir_load_const_instr_create(nir_shader *shader, unsigned num_components, unsigned bit_size) { - nir_load_const_instr *instr = ralloc(shader, nir_load_const_instr); + nir_load_const_instr *instr = rzalloc(shader, nir_load_const_instr); instr_init(&instr->instr, nir_instr_type_load_const); nir_ssa_def_init(&instr->instr, &instr->def, num_components, bit_size, NULL); |