[Mesa-dev] [PATCH] nir: Use the correct infos structure for copying atomic sources
Jason Ekstrand
jason at jlekstrand.net
Wed Oct 5 20:05:57 UTC 2016
Thanks all! Pushed.
On Wed, Oct 5, 2016 at 12:29 PM, Mark Janes <mark.a.janes at intel.com> wrote:
> Tested-by: Mark Janes <mark.a.janes at intel.com>
>
> Jason Ekstrand <jason at jlekstrand.net> writes:
>
> > Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
> > Cc: "12.0" <mesa-dev at lists.freedestkop.org>
> > Cc: Jordan Justen <jordan.l.justen at intel.com>
> > ---
> > src/compiler/nir/nir_lower_io.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/src/compiler/nir/nir_lower_io.c
> b/src/compiler/nir/nir_lower_io.c
> > index d469b61..a3b1423 100644
> > --- a/src/compiler/nir/nir_lower_io.c
> > +++ b/src/compiler/nir/nir_lower_io.c
> > @@ -327,7 +327,7 @@ lower_atomic(nir_intrinsic_instr *intrin, struct
> lower_io_state *state,
> > nir_intrinsic_set_base(atomic, var->data.driver_location);
> >
> > atomic->src[0] = nir_src_for_ssa(offset);
> > - for (unsigned i = 0; i < nir_op_infos[intrin->intrinsic].num_inputs;
> i++) {
> > + for (unsigned i = 0; i < nir_intrinsic_infos[intrin->intrinsic].num_srcs;
> i++) {
> > nir_src_copy(&atomic->src[i+1], &intrin->src[i], atomic);
> > }
> >
> > --
> > 2.5.0.400.gff86faf
> >
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161005/f553476f/attachment.html>
More information about the mesa-dev
mailing list