From: Christoph Bumiller Date: Sat, 23 May 2009 10:24:33 +0000 (+0200) Subject: nv50: fix SIGN_SET case in tgsi_src X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aad31d69ce9e2278d93e514b97e1a92a25f89826;p=mesa.git nv50: fix SIGN_SET case in tgsi_src --- diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index 877ead39ce8..2241801542e 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -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: