ir_to_mesa: Fix copy'n'paste bug where divide multiplied left by 1/left.
authorEric Anholt <eric@anholt.net>
Thu, 6 May 2010 17:31:44 +0000 (10:31 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 24 Jun 2010 22:05:20 +0000 (15:05 -0700)
Multiply left by 1/right, please.

mesa_codegen.brg

index b117aff0f6be752e1cc2707166f70e133d23bf10..0bfd8dae903b74502da5f45a8f9ccd64e181a869 100644 (file)
@@ -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,