[Mesa-dev] [PATCH] i965: Use NIR by default for vertex shaders on GEN8+

Matt Turner mattst88 at gmail.com
Sat May 16 13:10:15 PDT 2015


On Sat, May 16, 2015 at 1:07 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> I found a variety of places where the user was doing, for instance, 2
> muls and 4 adds where the result of each mul is used twice.  The
> result is 6 instructions instead of just the 4 mad's.  It's entirely
> possible that, thanks to latancies, the 6 would actually be better,
> but that's why I did it that way.

So there's probably a threshold. Certainly one multiply used by six
adds is over that threshold.

I'll do some experiments.


More information about the mesa-dev mailing list