summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2010-09-01 12:42:15 +0200
committerChristoph Bumiller <[email protected]>2010-09-01 18:02:51 +0200
commita79da61a4b5dd94fdacc0e7196510e8d27c8a157 (patch)
treef58e6a7301f5c0bc2c15bbd67b2b3731ea435938
parent8e6ba3c8cc41701b4391d0772bf2318604972ae9 (diff)
nv50: fix XPD, was negated
-rw-r--r--src/gallium/drivers/nv50/nv50_tgsi_to_nc.c8
1 files changed, 4 insertions, 4 deletions
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;