From: Eric Anholt Date: Thu, 6 May 2010 17:31:44 +0000 (-0700) Subject: ir_to_mesa: Fix copy'n'paste bug where divide multiplied left by 1/left. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f30100c19c5f4e95e18c03292947de2dbd9e28cf;p=mesa.git ir_to_mesa: Fix copy'n'paste bug where divide multiplied left by 1/left. Multiply left by 1/right, please. --- diff --git a/mesa_codegen.brg b/mesa_codegen.brg index b117aff0f6b..0bfd8dae903 100644 --- a/mesa_codegen.brg +++ b/mesa_codegen.brg @@ -186,7 +186,7 @@ vec4: div_vec4_vec4(vec4, vec4) 1 { ir_to_mesa_emit_scalar_op1(tree, OPCODE_RCP, tree->dst_reg, - tree->left->src_reg); + tree->right->src_reg); ir_to_mesa_emit_op2(tree, OPCODE_MUL, tree->dst_reg,