[Mesa-dev] [PATCH 2/2] nir: use src for ssa helper
Connor Abbott
cwabbott0 at gmail.com
Tue Jun 2 07:34:31 PDT 2015
Both are
Reviewed-by: Connor Abbott <cwabbott0 at gmail.com>
On Tue, Jun 2, 2015 at 5:37 AM, Timothy Arceri <t_arceri at yahoo.com.au> wrote:
> ---
> src/glsl/nir/glsl_to_nir.cpp | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
> index af758ce..a471a86 100644
> --- a/src/glsl/nir/glsl_to_nir.cpp
> +++ b/src/glsl/nir/glsl_to_nir.cpp
> @@ -932,11 +932,8 @@ 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 *
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list