From: Ian Romanick Date: Mon, 9 Aug 2010 17:46:38 +0000 (-0700) Subject: ir_algebraic: Support other comparisons in ir_unop_logic_not X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c88e60a27b8d5675cbf488e754537739c2c40bfd;p=mesa.git ir_algebraic: Support other comparisons in ir_unop_logic_not --- 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;