From 9b33465481daf465cde3ff46261486ab5c6433c6 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 4 Feb 2019 14:31:59 -0500 Subject: tgsi/scan: add uses_drawid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tested-by: Dieter Nützel Acked-by: Nicolai Hähnle --- src/gallium/auxiliary/tgsi/tgsi_scan.c | 3 +++ src/gallium/auxiliary/tgsi/tgsi_scan.h | 1 + 2 files changed, 4 insertions(+) (limited to 'src/gallium/auxiliary/tgsi') 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; diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index 09eac4da95a..51d85af4fcb 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -118,6 +118,7 @@ struct tgsi_shader_info boolean uses_vertexid; boolean uses_vertexid_nobase; boolean uses_basevertex; + boolean uses_drawid; boolean uses_primid; boolean uses_frontface; boolean uses_invocationid; -- cgit v1.2.3