[Mesa-dev] [PATCH] gm107/ir: Add stg, ldg instructions and function for checking offset length

Mark Menzynski mmenzyns at redhat.com
Tue Jul 23 13:35:07 UTC 2019


> > @@ -2414,6 +2428,17 @@ CodeEmitterGM107::emitLDS()
> >     emitGPR  (0x00, insn->def(0));
> >  }
> >
> > +void
> > +CodeEmitterGM107::emitLDG()
> > +{
> > +   emitInsn (0xeed00000);
> > +   emitLDSTs(0x30, insn->dType);
> > +   emitLDSTc(0x2e);
> > +   emitField(0x2d, 1, insn->src(0).getIndirect(0)->getSize() == 8);
>
> I didn't look, but we don't do something a bit more subtle on the
> other ones, like checking if there's an indirect access in the first
> place? With g[], it almost exclusively will be, but still...

It's done same in the original store and load functions.

> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list