summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_to_ssa.c
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsálvez <[email protected]>2016-03-23 08:04:09 +0100
committerSamuel Iglesias Gonsálvez <[email protected]>2016-04-11 08:27:04 +0200
commite3edaec739a72a36d54b60ddf5c952d377324f00 (patch)
treef16728178175bdfcb369e5d03ae7b7991f003fed /src/compiler/nir/nir_to_ssa.c
parent41a39e338470d2b0e1b78e5e45d673f64f4dc418 (diff)
nir: add bit_size info to nir_ssa_undef_instr_create()
v2: - Make the users to give the right bit_sizes as arguments (Jason). Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_to_ssa.c')
-rw-r--r--src/compiler/nir/nir_to_ssa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_to_ssa.c b/src/compiler/nir/nir_to_ssa.c
index d588d7d2df3..23d709a218a 100644
--- a/src/compiler/nir/nir_to_ssa.c
+++ b/src/compiler/nir/nir_to_ssa.c
@@ -160,7 +160,8 @@ static nir_ssa_def *get_ssa_src(nir_register *reg, rewrite_state *state)
* to preserve the information that this source is undefined
*/
nir_ssa_undef_instr *instr =
- nir_ssa_undef_instr_create(state->mem_ctx, reg->num_components);
+ nir_ssa_undef_instr_create(state->mem_ctx, reg->num_components,
+ reg->bit_size);
/*
* We could just insert the undefined instruction before the instruction