ir_to_mesa: Fix implementation of ir_binop_equal, ir_binop_notequal.
authorEric Anholt <eric@anholt.net>
Wed, 18 Aug 2010 00:24:42 +0000 (17:24 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 18 Aug 2010 00:27:44 +0000 (17:27 -0700)
commit6992c3c3739dad249e8c396057d5cbeedcdf91de
treeb590fa66a494743fb93ae0d1c3a59a28b0511a87
parent02e16398292825924d4c7ffb884961275dbadacd
ir_to_mesa: Fix implementation of ir_binop_equal, ir_binop_notequal.

These binops are the vector-to-bool comparisons, not vec-to-bvec.  We
likely want both operations avilable as expression, since 915 and 965
FS naturally does the vector version, while 965 VS can also naturally
do the scalar version.  However, we can save that until later.

Fixes:
glsl-fs-vec4-operator-equal.shader_test
glsl-fs-vec4-operator-notequal.shader_test
glsl-vs-vec4-operator-equal.shader_test
glsl-vs-vec4-operator-notequal.shader_test
src/mesa/program/ir_to_mesa.cpp