[Mesa-dev] [PATCH v3 026/104] nir: Support deref instructions in propagate_invariant

Jason Ekstrand jason at jlekstrand.net
Sat Apr 7 05:47:36 UTC 2018


On Fri, Apr 6, 2018 at 4:22 PM, Caio Marcelo de Oliveira Filho <
caio.oliveira at intel.com> wrote:

> > +static nir_variable *
> > +intrinsic_get_var(nir_intrinsic_instr *intrin, unsigned i)
> > +{
> > +   if (nir_intrinsic_infos[intrin->intrinsic].num_variables == 0)
> > +      return nir_deref_instr_get_variable(nir_src_as_deref(intrin->src[
> i]));
> > +   else
> > +      return intrin->variables[0]->var;
>
> Should this be intrin->variables[i]->var?
>

Yes, yes it should.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180406/b52281c6/attachment.html>


More information about the mesa-dev mailing list