[Mesa-dev] [PATCH] glsl: Optimize mul(a, -1) into neg(a).

Eric Anholt eric at anholt.net
Wed Oct 16 20:14:58 CEST 2013


Matt Turner <mattst88 at gmail.com> writes:

> Two extra instructions in some heroesofnewerth shaders, but a win for
> everything else.
>
> total instructions in shared programs: 1531352 -> 1530815 (-0.04%)
> instructions in affected programs:     121898 -> 121361 (-0.44%)

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- 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/20131016/287c4a3a/attachment.pgp>


More information about the mesa-dev mailing list