OSDN Git Service

nv50: fix SIGN_SET case in tgsi_src
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 23 May 2009 10:24:33 +0000 (12:24 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 28 May 2009 06:06:17 +0000 (16:06 +1000)
src/gallium/drivers/nv50/nv50_program.c

index 877ead3..2241801 100644 (file)
@@ -956,7 +956,7 @@ tgsi_src(struct nv50_pc *pc, int chan, const struct tgsi_full_src_register *src)
        case TGSI_UTIL_SIGN_SET:
                temp = temp_temp(pc);
                emit_abs(pc, temp, r);
-               emit_neg(pc, temp, r);
+               emit_neg(pc, temp, temp);
                r = temp;
                break;
        default: