tgsi: remove unneeded File == TGSI_FILE_INPUT test
authorBrian Paul <brianp@vmware.com>
Fri, 2 Aug 2013 14:00:54 +0000 (08:00 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 5 Aug 2013 16:25:08 +0000 (10:25 -0600)
We're already in an "if (File == TGSI_FILE_INPUT)" block at that point.

src/gallium/auxiliary/tgsi/tgsi_scan.c

index 3578ccfbbc5becf659fc53cd3a34b79b51349fb3..1294a7a98a7028cba95b23e6e545700b95672e48 100644 (file)
@@ -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 ||