[Mesa-dev] [PATCH] tgsi: remove unneeded File == TGSI_FILE_INPUT test

Brian Paul brianp at vmware.com
Fri Aug 2 07:58:40 PDT 2013


We're already in an "if (File == TGSI_FILE_INPUT)" block at that point.
---
 src/gallium/auxiliary/tgsi/tgsi_scan.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 1fe1a07..7f30f88 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 ||
-- 
1.7.10.4



More information about the mesa-dev mailing list