summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2013-08-02 08:00:54 -0600
committerBrian Paul <brianp@vmware.com>2013-08-05 10:25:08 -0600
commit4c9f12d69c7e8a24ac6281481f579b1088c505b0 (patch)
tree95cd0e2ca36de83293bf920be8c0277244fdef53
parent3e4b5c6c9c14b80964bb20dc882f59c19d6b6f9d (diff)
tgsi: remove unneeded File == TGSI_FILE_INPUT test
We're already in an "if (File == TGSI_FILE_INPUT)" block at that point.
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 3578ccfbbc5..1294a7a98a7 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -114,7 +114,6 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
}
if (procType == TGSI_PROCESSOR_FRAGMENT &&
- src->Register.File == TGSI_FILE_INPUT &&
info->reads_position &&
src->Register.Index == 0 &&
(src->Register.SwizzleX == TGSI_SWIZZLE_Z ||