tgsi: add tgsi_shader_info::writes_psize
authorMarek Olšák <marek.olsak@amd.com>
Sun, 7 Dec 2014 17:49:31 +0000 (18:49 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 10 Dec 2014 20:59:36 +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 a23bb4067aa005a1ca343cee70561efbd887acf4..b6c88af3a9e079b2892bcbeee2daeabdd6e5af6d 100644 (file)
@@ -238,6 +238,9 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                      else if (semName == TGSI_SEMANTIC_LAYER) {
                         info->writes_layer = TRUE;
                      }
+                     else if (semName == TGSI_SEMANTIC_PSIZE) {
+                        info->writes_psize = TRUE;
+                     }
                   }
 
                   if (procType == TGSI_PROCESSOR_FRAGMENT) {
index b02b018b6335ff5d2e8a8060ac8b7a895991a54a..b50b650c8016e34248f593f41019d37f61ad3aa5 100644 (file)
@@ -76,6 +76,7 @@ struct tgsi_shader_info
    boolean uses_vertexid;
    boolean uses_primid;
    boolean uses_frontface;
+   boolean writes_psize;
    boolean writes_viewport_index;
    boolean writes_layer;
    boolean is_msaa_sampler[PIPE_MAX_SAMPLERS];