diff options
author | Marek Olšák <[email protected]> | 2016-01-08 01:45:34 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-01-08 20:07:15 +0100 |
commit | c00e534283d26fd66e2f52962cf55435dc7a4597 (patch) | |
tree | bee83a01b0e46bc8465bf4330533f99927d4993d /src/gallium | |
parent | 34738a92dea31ab91edb62bf83a3fe1ca44c35a1 (diff) |
tgsi/scan: update for POSITION and FACE sytem values
Reviewed-by: Edward O'Callaghan <[email protected]
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_scan.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 6ea32eedd74..7a02e27e01e 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; |