glsl: Recognize sat(add(b2f(a), b2f(b))) as a logical OR.
authorMatt Turner <mattst88@gmail.com>
Wed, 18 Mar 2015 17:39:38 +0000 (10:39 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Mar 2015 21:43:37 +0000 (14:43 -0700)
commitb481ebbe399fdc6386fd52f890ba7c310d333ed5
treede4c3c61ba726eb2aacc9737bae30488cb1f9d17
parentc8e8f660365515560af029651e593f7ee700401c
glsl: Recognize sat(add(b2f(a), b2f(b))) as a logical OR.

Transform this into b2f(or(a, b)).

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/opt_algebraic.cpp