From: Eric Anholt Date: Thu, 3 Jun 2010 16:04:57 +0000 (-0700) Subject: ir_to_mesa: Fix copy-and-wasted DIV instruction sequence. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d2b8e0b70acce2678bea2cb6a990e0dee380b37;p=mesa.git ir_to_mesa: Fix copy-and-wasted DIV instruction sequence. --- diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp index 3376e897050..d9d7a91b296 100644 --- a/ir_to_mesa.cpp +++ b/ir_to_mesa.cpp @@ -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: