summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_scan.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-02-04 14:31:59 -0500
committerMarek Olšák <[email protected]>2019-04-23 11:28:56 -0400
commit9b33465481daf465cde3ff46261486ab5c6433c6 (patch)
tree637f7217a9da875c9bc91052325529ffaa645310 /src/gallium/auxiliary/tgsi/tgsi_scan.c
parent77449d7c41acab8b365023032512cf7eaed6b886 (diff)
tgsi/scan: add uses_drawid
Tested-by: Dieter Nützel <[email protected]> Acked-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_scan.c')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index bfb415e439a..4cb1a3152c3 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -683,6 +683,9 @@ scan_declaration(struct tgsi_shader_info *info,
case TGSI_SEMANTIC_BASEVERTEX:
info->uses_basevertex = TRUE;
break;
+ case TGSI_SEMANTIC_DRAWID:
+ info->uses_drawid = TRUE;
+ break;
case TGSI_SEMANTIC_PRIMID:
info->uses_primid = TRUE;
break;