summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_from_ssa.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-19 16:06:32 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:02 -0800
commit6a52d2af2f7594fcd76fcf6158eca531e48af1e3 (patch)
tree89d015f2fa2288f98551f858c655688ae4e8e9bb /src/glsl/nir/nir_from_ssa.c
parent829aa98320fcd529407d16991b476b71af017479 (diff)
nir: Don't require a function in ssa_def_init
Instead, we give SSA definitions a temporary index of 0xFFFFFFFF if the instruction does not have a block and a proper index when it actually gets added to the list. Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_from_ssa.c')
-rw-r--r--src/glsl/nir/nir_from_ssa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/nir/nir_from_ssa.c b/src/glsl/nir/nir_from_ssa.c
index 3186c7d4aa8..9b7c931c072 100644
--- a/src/glsl/nir/nir_from_ssa.c
+++ b/src/glsl/nir/nir_from_ssa.c
@@ -314,7 +314,7 @@ isolate_phi_nodes_block(nir_block *block, void *void_state)
_mesa_hash_pointer(&pcopy->instr), &pcopy->instr);
copy->dest.is_ssa = true;
- nir_ssa_def_init(state->impl, &pcopy->instr, &copy->dest.ssa,
+ nir_ssa_def_init(&pcopy->instr, &copy->dest.ssa,
phi->dest.ssa.num_components, src->src.ssa->name);
struct set_entry *entry = _mesa_set_search(src->src.ssa->uses,
@@ -339,7 +339,7 @@ isolate_phi_nodes_block(nir_block *block, void *void_state)
exec_list_push_tail(&block_pcopy->copies, &copy->node);
copy->dest.is_ssa = true;
- nir_ssa_def_init(state->impl, &block_pcopy->instr, &copy->dest.ssa,
+ nir_ssa_def_init(&block_pcopy->instr, &copy->dest.ssa,
phi->dest.ssa.num_components, phi->dest.ssa.name);
nir_src copy_dest_src = {