Mesa (7.10): nv50,nvc0: do not forget to apply sign mode to saved TGSI inputs
Dave Airlie
airlied at kemper.freedesktop.org
Wed Feb 16 00:35:24 UTC 2011
Module: Mesa
Branch: 7.10
Commit: 0555e04aaaae0b35dce7ac44b5c9c25d7dcf9d5d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0555e04aaaae0b35dce7ac44b5c9c25d7dcf9d5d
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Mon Feb 7 14:54:17 2011 +0100
nv50,nvc0: do not forget to apply sign mode to saved TGSI inputs
fixes 34179.
Reported-by: Sense Hofstede
Requested-by: Christopher James Halse Rogers <christopher.halse.rogers at canonical.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
src/gallium/drivers/nv50/nv50_tgsi_to_nc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
index d6b80c3..ce9300a 100644
--- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
+++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
@@ -1130,7 +1130,7 @@ emit_fetch(struct bld_context *bld, const struct tgsi_full_instruction *insn,
case TGSI_FILE_INPUT:
res = bld_saved_input(bld, idx, swz);
if (res && (insn->Instruction.Opcode != TGSI_OPCODE_TXP))
- return res;
+ break;
res = new_value(bld->pc, bld->ti->input_file, type);
res->reg.id = bld->ti->input_map[idx][swz];
More information about the mesa-commit
mailing list