tgsi: add tgsi_shader_info::writes_clipvertex
authorMarek Olšák <marek.olsak@amd.com>
Sun, 7 Dec 2014 18:20:10 +0000 (19:20 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 Dec 2014 20:59:37 +0000 (21:59 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h

index 9d155c908f5ae9916e0d351f250d6004fe2ab035..649c327d9c9daa5591e0b0108d4911b174092c73 100644 (file)
@@ -245,6 +245,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                      else if (semName == TGSI_SEMANTIC_PSIZE) {
                         info->writes_psize = TRUE;
                      }
+                     else if (semName == TGSI_SEMANTIC_CLIPVERTEX) {
+                        info->writes_clipvertex = TRUE;
+                     }
                   }
 
                   if (procType == TGSI_PROCESSOR_FRAGMENT) {
index 56079977bf1e6c060a117561cc0165a039b3210d..61ce81342a48b646dbfd7be8763fac958dfd1c1f 100644 (file)
@@ -77,6 +77,7 @@ struct tgsi_shader_info
    boolean uses_primid;
    boolean uses_frontface;
    boolean writes_psize;
+   boolean writes_clipvertex;
    boolean writes_viewport_index;
    boolean writes_layer;
    boolean is_msaa_sampler[PIPE_MAX_SAMPLERS];