[Mesa-dev] [PATCH] glsl: Optimize scalar all_equal/any_nequal into equal/nequal.

Eric Anholt eric at anholt.net
Thu Dec 4 18:06:34 PST 2014


Matt Turner <mattst88 at gmail.com> writes:

> Cuts an instruction from two shaders in Tesseract, by allowing the
> (x+y) cmp 0 -> x cmp -y optimization to take place.
>
> instructions in affected programs:     1198 -> 1194 (-0.33%)

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141204/54fbcef3/attachment.sig>


More information about the mesa-dev mailing list