[Mesa-dev] [PATCH 6/6] panfrost: Add support for TXS instructions

Boris Brezillon boris.brezillon at collabora.com
Mon Jun 17 17:05:57 UTC 2019


On Mon, 17 Jun 2019 07:05:24 -0700
Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com> wrote:

> > +        /*
> > +         * Note: the first call is here to lower RECT and TXP, the second one
> > +         * to lower the TXS(lod) instructions generated by the RECT lowering
> > +         * done in the first pass.
> > +         *
> > +         * FIXME: we should probably have a
> > +         *
> > +         *    do nir_lower_tex() while (progress)
> > +         *
> > +         * loop here, but it looks like nir_lower_tex() is not ready for that
> > +         * (it keeps returning true and lowering the same instructions over and
> > +         * over again).
> > +         */
> > +        NIR_PASS(progress, nir, nir_lower_tex, &lower_tex_options);
> > +        lower_tex_options.lower_rect = false;
> > +        lower_tex_options.lower_txp = 0;
> >          NIR_PASS(progress, nir, nir_lower_tex, &lower_tex_options);  
> 
> Hmm, maybe we could just have a second indepedent lower_tex_options to
> do just the lower_txs_lod lowering? No progress loop needed, no complex
> explanation needed. It's a little strange, but it's okay :)

Okay, I'll do that.

Thanks,

Boris


More information about the mesa-dev mailing list