From: Timothy Arceri Date: Tue, 2 Jun 2015 09:26:42 +0000 (+1000) Subject: nir: use src for ssa helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86a74e9b6b8953a55de234f185a14defd646f489;p=mesa.git nir: use src for ssa helper Reviewed-by: Thomas Helland Reviewed-by: Connor Abbott --- 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 *