From 9d2b8e0b70acce2678bea2cb6a990e0dee380b37 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 3 Jun 2010 09:04:57 -0700 Subject: [PATCH] ir_to_mesa: Fix copy-and-wasted DIV instruction sequence. --- ir_to_mesa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2