diff options
author | Eric Anholt <eric@anholt.net> | 2010-05-06 10:31:44 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-24 15:05:20 -0700 |
commit | f30100c19c5f4e95e18c03292947de2dbd9e28cf (patch) | |
tree | a79237f278a20a00d6aa61f0d80a75b8cf112eba | |
parent | 3d70d1f4d684a943b8b4a65319641415882b72cb (diff) |
ir_to_mesa: Fix copy'n'paste bug where divide multiplied left by 1/left.
Multiply left by 1/right, please.
-rw-r--r-- | mesa_codegen.brg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesa_codegen.brg b/mesa_codegen.brg index b117aff0f6..0bfd8dae90 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, |