Mesa (gallium-0.2): cell: fix fm/fs copy & paste bug from a few commits ago

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 10 18:08:26 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: a45d293fd9a1432404a7e26f97cb20b2a0c43654
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a45d293fd9a1432404a7e26f97cb20b2a0c43654

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Fri Oct 10 12:04:19 2008 -0600

cell: fix fm/fs copy & paste bug from a few commits ago

---

 src/gallium/drivers/cell/ppu/cell_gen_fp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_gen_fp.c b/src/gallium/drivers/cell/ppu/cell_gen_fp.c
index 7a4e8d2..ab71336 100644
--- a/src/gallium/drivers/cell/ppu/cell_gen_fp.c
+++ b/src/gallium/drivers/cell/ppu/cell_gen_fp.c
@@ -474,7 +474,7 @@ emit_SUB(struct codegen *gen, const struct tgsi_full_instruction *inst)
    for (ch = 0; ch < 4; ch++) {
       if (inst->FullDstRegisters[0].DstRegister.WriteMask & (1 << ch)) {
          /* d = s1 - s2 */
-         spe_fm(gen->f, d_reg[ch], s1_reg[ch], s2_reg[ch]);
+         spe_fs(gen->f, d_reg[ch], s1_reg[ch], s2_reg[ch]);
          store_dest_reg(gen, d_reg[ch], ch, &inst->FullDstRegisters[0]);
          free_itemps(gen);
       }




More information about the mesa-commit mailing list