[Mesa-dev] [PATCH 2/2] nir: use src for ssa helper

Thomas Helland thomashelland90 at gmail.com
Tue Jun 2 03:56:19 PDT 2015


Both of these look good and are:

Reviewed-by: Thomas Helland <thomashelland90 at gmail.com>

2015-06-02 11:37 GMT+02:00 Timothy Arceri <t_arceri at yahoo.com.au>:
> ---
>  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