summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-08-09 10:46:38 -0700
committerIan Romanick <[email protected]>2010-08-09 10:46:38 -0700
commitc88e60a27b8d5675cbf488e754537739c2c40bfd (patch)
tree7d315786550831bab0b4e3e593e5dcc111a08dce
parentfe277089c7a9bb402ef40d89f641b69fb508f2dc (diff)
ir_algebraic: Support other comparisons in ir_unop_logic_not
-rw-r--r--src/glsl/ir_algebraic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/ir_algebraic.cpp b/src/glsl/ir_algebraic.cpp
index d9e7b680f7d..43d8f9e699c 100644
--- a/src/glsl/ir_algebraic.cpp
+++ b/src/glsl/ir_algebraic.cpp
@@ -168,6 +168,10 @@ ir_algebraic_visitor::handle_expression(ir_rvalue *in_ir)
break;
switch (op_expr[0]->operation) {
+ case ir_binop_less: new_op = ir_binop_gequal; break;
+ case ir_binop_greater: new_op = ir_binop_lequal; break;
+ case ir_binop_lequal: new_op = ir_binop_greater; break;
+ case ir_binop_gequal: new_op = ir_binop_less; break;
case ir_binop_equal: new_op = ir_binop_nequal; break;
case ir_binop_nequal: new_op = ir_binop_equal; break;