[Mesa-dev] [PATCH] glsl/opt_algebraic: recognize lrp pattern
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
Size: 835 bytes
Desc: not available
More information about the mesa-dev