summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2016-12-01 11:06:28 -0600
committerTim Rowley <[email protected]>2016-12-01 11:33:01 -0600
commit05f35a868cd18e9821fc92d6e11f7cce10ddd587 (patch)
tree059a4779ce3523b1d8584f6d6089959c08aa1d08 /src/gallium/auxiliary
parent7c16552f8dcc869b14cf7ef443a1b5de83b07973 (diff)
tgsi: store writes_primid when scanning tgsi
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.c3
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_scan.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index 84d64568c4b..77fe6b37982 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -548,6 +548,9 @@ scan_declaration(struct tgsi_shader_info *info,
info->num_outputs = MAX2(info->num_outputs, reg + 1);
switch (semName) {
+ case TGSI_SEMANTIC_PRIMID:
+ info->writes_primid = true;
+ break;
case TGSI_SEMANTIC_VIEWPORT_INDEX:
info->writes_viewport_index = true;
break;
diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h
index fe503e8ba36..e4f40183189 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h
@@ -113,6 +113,7 @@ struct tgsi_shader_info
boolean writes_position;
boolean writes_psize;
boolean writes_clipvertex;
+ boolean writes_primid;
boolean writes_viewport_index;
boolean writes_layer;
boolean writes_memory; /**< contains stores or atomics to buffers or images */