summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-06-02 19:26:42 +1000
committerTimothy Arceri <[email protected]>2015-06-03 06:50:39 +1000
commit86a74e9b6b8953a55de234f185a14defd646f489 (patch)
tree0e48919479fe8734f4d39860a4540e4e9d7e9307 /src/glsl/nir
parent5f7b8fa4811ae0acb49de5d0ef44ae1573eb5ccc (diff)
nir: use src for ssa helper
Reviewed-by: Thomas Helland <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir')
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
index af758ceb020..ad8cfad627b 100644
--- a/src/glsl/nir/glsl_to_nir.cpp
+++ b/src/glsl/nir/glsl_to_nir.cpp
@@ -930,13 +930,9 @@ nir_visitor::evaluate_rvalue(ir_rvalue* ir)
}
nir_dest *dest = get_instr_dest(this->result);
-
assert(dest->is_ssa);
- nir_src src = NIR_SRC_INIT;
- src.is_ssa = true;
- src.ssa = &dest->ssa;
- return src;
+ return nir_src_for_ssa(&dest->ssa);
}
nir_alu_instr *