diff options
author | Jason Ekstrand <[email protected]> | 2014-12-15 17:44:37 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:22 -0800 |
commit | 675ffdef3010400567a5f6f790f1f7bd2fede717 (patch) | |
tree | 8054dc07405551cf185b45b29bf7547368f1849f /src/glsl/nir/nir_to_ssa.c | |
parent | 951a7f23a076c1570f68b50fc7d03a33eb5145e7 (diff) |
nir: Make nir_ssa_undef_instr_create initialize the destination
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_to_ssa.c')
-rw-r--r-- | src/glsl/nir/nir_to_ssa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c index 3725ddbe226..58e8829e1c4 100644 --- a/src/glsl/nir/nir_to_ssa.c +++ b/src/glsl/nir/nir_to_ssa.c @@ -159,9 +159,8 @@ static nir_ssa_def *get_ssa_src(nir_register *reg, rewrite_state *state) * We're using an undefined register, create a new undefined SSA value * to preserve the information that this source is undefined */ - nir_ssa_undef_instr *instr = nir_ssa_undef_instr_create(state->mem_ctx); - nir_ssa_def_init(&instr->instr, &instr->def, - reg->num_components, NULL); + nir_ssa_undef_instr *instr = + nir_ssa_undef_instr_create(state->mem_ctx, reg->num_components); /* * We could just insert the undefined instruction before the instruction |