[Mesa-dev] [PATCH] glsl/opt_algebraic: recognize lrp pattern

Eric Anholt eric at anholt.net
Fri Nov 15 19:47:07 PST 2013


Jordan Justen <jordan.l.justen at intel.com> writes:

> This algebraic optimization recognizes an series of adds and
> multiplies with a particular pattern within the ir which is
> equivalent to a lrp.
>
> shader-db results:
> total instructions in shared programs: 1729161 -> 1718321 (-0.63%)
> instructions in affected programs:     743700 -> 732860 (-1.46%)
> GAINED:                                4
> LOST:                                  41

Your testing matches mine: No performance difference on dota2, n=10.

I do need to figure out how to automate the testing, though.  I'd like
to be able to take more samples without manually doing up-arrow/enter in
the game's console.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131115/de70be75/attachment.pgp>


More information about the mesa-dev mailing list