glsl: Fix broken constant expression handling for <, <=, >, and >=.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2012 19:04:45 +0000 (12:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 May 2012 19:28:44 +0000 (12:28 -0700)
commitf72e9b2041e294c8ac2258ff3f2b923c39cbef83
tree2449054f36b35a67c12ee58ded6b2fc9656db554
parentc55ebc3e3e556a5bf5cd78cee2807f4cbb6f626a
glsl: Fix broken constant expression handling for <, <=, >, and >=.

We were looping over all the vector components, but only dealing with
the first one.  This was masked by the fact that constant expression
handling on built-ins went through custom code for the lessThan()
/function/ rather than the ir_binop_less expression operator.

NOTE: This is a candidate for all release branches.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Olivier Galibert <galibert@pobox.com>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ir_constant_expression.cpp