ir_algebraic: Support other comparisons in ir_unop_logic_not
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 9 Aug 2010 17:46:38 +0000 (10:46 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 9 Aug 2010 17:46:38 +0000 (10:46 -0700)
src/glsl/ir_algebraic.cpp

index d9e7b680f7de19513ea6ba993ff01ef8c19b150e..43d8f9e699ca207e40bc0bfd5f0b309a729e7497 100644 (file)
@@ -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;