Mesa (master): tgsi: remove unneeded File == TGSI_FILE_INPUT test

Brian Paul brianp at kemper.freedesktop.org
Mon Aug 5 16:25:39 UTC 2013


Module: Mesa
Branch: master
Commit: 4c9f12d69c7e8a24ac6281481f579b1088c505b0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c9f12d69c7e8a24ac6281481f579b1088c505b0

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Aug  2 08:00:54 2013 -0600

tgsi: remove unneeded File == TGSI_FILE_INPUT test

We're already in an "if (File == TGSI_FILE_INPUT)" block at that point.

---

 src/gallium/auxiliary/tgsi/tgsi_scan.c |    1 -
 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 3578ccf..1294a7a 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 ||




More information about the mesa-commit mailing list