summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-05-20 10:32:32 +1000
committerDave Airlie <[email protected]>2015-06-23 15:53:49 +1000
commit40d225803ecfa805b4dea4ee0ebd04df00ca8827 (patch)
treeac96f55468f2e78bb56ea17d6389e581d2b4e3d3 /src/gallium/auxiliary/tgsi/tgsi_scan.c
parent24e77cb09fda9a57d4a8288ced3e01df4c8ac280 (diff)
draw/tgsi: implement geom shader invocation support.
This is just for softpipe, llvmpipe won't work without some changes. Reviewed-by: Roland Scheidegger <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 369f56a1955..711413cdaf6 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -248,6 +248,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
}
else if (semName == TGSI_SEMANTIC_PRIMID) {
info->uses_primid = TRUE;
+ } else if (semName == TGSI_SEMANTIC_INVOCATIONID) {
+ info->uses_invocationid = TRUE;
}
}
else if (file == TGSI_FILE_OUTPUT) {