glsl: Fix broken handling of ir_binop_equal and ir_binop_nequal.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 19 Sep 2010 02:51:07 +0000 (04:51 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 Sep 2010 15:33:13 +0000 (17:33 +0200)
commit6ea16b6c510ee7f0e68505838a99562f0852f8e4
treef39cf9a7e3978532f165f34768e6b63a0a32e04e
parent14eea268284491d64ff92b37723bff1e9ff14b40
glsl: Fix broken handling of ir_binop_equal and ir_binop_nequal.

When ir_binop_all_equal and ir_binop_any_nequal were introduced, the
meaning of these two opcodes changed to return vectors rather than a
single scalar, but the constant expression handling code was incorrectly
written and only worked for scalars.  As a result, only the first
component of the returned vector would be properly initialized.
src/glsl/ir_constant_expression.cpp