From: Marek Olšák Date: Fri, 8 Jan 2016 00:45:34 +0000 (+0100) Subject: tgsi/scan: update for POSITION and FACE sytem values X-Git-Tag: upstream/17.1.0~13312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c00e534283d26fd66e2f52962cf55435dc7a4597;p=platform%2Fupstream%2Fmesa.git tgsi/scan: update for POSITION and FACE sytem values Reviewed-by: Edward O'Callaghan --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 6ea32ee..7a02e27 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -373,7 +373,10 @@ tgsi_scan_shader(const struct tgsi_token *tokens, info->uses_primid = TRUE; } else if (semName == TGSI_SEMANTIC_INVOCATIONID) { info->uses_invocationid = TRUE; - } + } else if (semName == TGSI_SEMANTIC_POSITION) + info->reads_position = TRUE; + else if (semName == TGSI_SEMANTIC_FACE) + info->uses_frontface = TRUE; } else if (file == TGSI_FILE_OUTPUT) { info->output_semantic_name[reg] = (ubyte) semName;