ir_to_mesa: Fix copy-and-wasted DIV instruction sequence.
authorEric Anholt <eric@anholt.net>
Thu, 3 Jun 2010 16:04:57 +0000 (09:04 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 24 Jun 2010 22:05:21 +0000 (15:05 -0700)
ir_to_mesa.cpp

index 3376e8970505b65510e5d522f684ad9c5923720d..d9d7a91b29643f1a527cb2099162dd2c7579d732 100644 (file)
@@ -413,7 +413,7 @@ ir_to_mesa_visitor::visit(ir_expression *ir)
       break;
    case ir_binop_div:
       ir_to_mesa_emit_scalar_op1(ir, OPCODE_RCP, result_dst, op[1]);
-      ir_to_mesa_emit_op2(ir, OPCODE_RCP, result_dst, op[0], result_src);
+      ir_to_mesa_emit_op2(ir, OPCODE_MUL, result_dst, op[0], result_src);
       break;
 
    case ir_binop_less: