From a79da61a4b5dd94fdacc0e7196510e8d27c8a157 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Wed, 1 Sep 2010 12:42:15 +0200 Subject: nv50: fix XPD, was negated --- src/gallium/drivers/nv50/nv50_tgsi_to_nc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c index 141d2cd325f..6bd2de4c744 100644 --- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c +++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c @@ -1791,12 +1791,12 @@ bld_instruction(struct bld_context *bld, dst0[3] = bld_imm_f32(bld, 1.0f); break; } - src0 = emit_fetch(bld, insn, 0, (c + 1) % 3); - src1 = emit_fetch(bld, insn, 1, (c + 2) % 3); + src0 = emit_fetch(bld, insn, 1, (c + 1) % 3); + src1 = emit_fetch(bld, insn, 0, (c + 2) % 3); dst0[c] = bld_insn_2(bld, NV_OP_MUL, src0, src1); - src0 = emit_fetch(bld, insn, 0, (c + 2) % 3); - src1 = emit_fetch(bld, insn, 1, (c + 1) % 3); + src0 = emit_fetch(bld, insn, 0, (c + 1) % 3); + src1 = emit_fetch(bld, insn, 1, (c + 2) % 3); dst0[c] = bld_insn_3(bld, NV_OP_MAD, src0, src1, dst0[c]); dst0[c]->insn->src[2]->mod ^= NV_MOD_NEG; -- cgit v1.2.3