[Mesa-dev] [PATCH v4 (part2) 34/59] nir: ignore an instruction's dest if it hasn't any

Connor Abbott cwabbott0 at gmail.com
Wed Aug 5 12:22:35 PDT 2015


Change the prefix to "nir/glsl_to_nir" and this is

Reviewed-by: Connor Abbott <connor.w.abbott at intel.com>

On Wed, Aug 5, 2015 at 1:30 AM, Iago Toral Quiroga <itoral at igalia.com> wrote:
> ---
>  src/glsl/nir/glsl_to_nir.cpp | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
> index be4cd66..aa96e40 100644
> --- a/src/glsl/nir/glsl_to_nir.cpp
> +++ b/src/glsl/nir/glsl_to_nir.cpp
> @@ -1011,7 +1011,8 @@ nir_visitor::add_instr(nir_instr *instr, unsigned num_components)
>  {
>     nir_dest *dest = get_instr_dest(instr);
>
> -   nir_ssa_dest_init(instr, dest, num_components, NULL);
> +   if (dest)
> +      nir_ssa_dest_init(instr, dest, num_components, NULL);
>
>     nir_instr_insert_after_cf_list(this->cf_node_list, instr);
>     this->result = instr;
> --
> 1.9.1
>
> _______________________________________________
> 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