From: Brian Paul Date: Fri, 2 Aug 2013 14:00:54 +0000 (-0600) Subject: tgsi: remove unneeded File == TGSI_FILE_INPUT test X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c9f12d69c7e8a24ac6281481f579b1088c505b0;p=mesa.git tgsi: remove unneeded File == TGSI_FILE_INPUT test We're already in an "if (File == TGSI_FILE_INPUT)" block at that point. --- 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 ||