glsl: Optimize (not A) and (not B) into not (A or B).
authorMatt Turner <mattst88@gmail.com>
Wed, 23 Oct 2013 23:42:34 +0000 (16:42 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 25 Oct 2013 17:35:18 +0000 (10:35 -0700)
commit64c081e8b788ba87c9edc505127b87c3fba47599
tree64a50614b5571c2a78ca5fbb9c697839e2ca6ebf
parent65a600f58a7a35016e32e9774560b71f675566fd
glsl: Optimize (not A) and (not B) into not (A or B).

No shader-db changes, but seems like a good idea.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/opt_algebraic.cpp