[Mesa-dev] [PATCH] nir: Use pointers for nir_src_copy and nir_dest_copy

Jason Ekstrand jason at jlekstrand.net
Mon Jan 26 11:17:48 PST 2015


On Mon, Jan 26, 2015 at 10:45 AM, Eric Anholt <eric at anholt.net> wrote:

> Jason Ekstrand <jason at jlekstrand.net> writes:
> > @@ -563,7 +557,7 @@ copy_deref_array(void *mem_ctx, nir_deref_array
> *deref)
> >     ret->base_offset = deref->base_offset;
> >     ret->deref_array_type = deref->deref_array_type;
> >     if (deref->deref_array_type == nir_deref_array_type_indirect) {
> > -      ret->indirect = nir_src_copy(deref->indirect, mem_ctx);
> > +       nir_src_copy(&ret->indirect, &deref->indirect, mem_ctx);
> >     }
> >     ret->deref.type = deref->deref.type;
> >     if (deref->deref.child)
>
> Unintentional whitespace change?
>

Good catch.  Not sure how that happened.  Fixed.


>
> Other than that,
>
> Reviewed-by: Eric Anholt <eric at anholt.net>
>

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150126/6dac7eef/attachment.html>


More information about the mesa-dev mailing list