tgsi/scan: add tgsi_shader_info::reads_samplemask
authorMarek Olšák <marek.olsak@amd.com>
Fri, 8 Jan 2016 23:47:39 +0000 (00:47 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 2 Feb 2016 20:04:52 +0000 (21:04 +0100)
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/auxiliary/tgsi/tgsi_scan.h

index 7a02e27e01e866c0b1ded20af07cdf3a5a4bb39d..687fb54830d16f578114246bf0ef9a7cc15d273e 100644 (file)
@@ -377,6 +377,8 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
                      info->reads_position = TRUE;
                   else if (semName == TGSI_SEMANTIC_FACE)
                      info->uses_frontface = TRUE;
+                  else if (semName == TGSI_SEMANTIC_SAMPLEMASK)
+                     info->reads_samplemask = TRUE;
                }
                else if (file == TGSI_FILE_OUTPUT) {
                   info->output_semantic_name[reg] = (ubyte) semName;
index b0b423ab5286e9cc630db729333e343eae4ee7fa..0541255764c0cd7d2587d1f2dc409771f8b1bf4d 100644 (file)
@@ -81,6 +81,7 @@ struct tgsi_shader_info
    ubyte colors_written;
    boolean reads_position; /**< does fragment shader read position? */
    boolean reads_z; /**< does fragment shader read depth? */
+   boolean reads_samplemask; /**< does fragment shader read sample mask? */
    boolean writes_z;  /**< does fragment shader write Z value? */
    boolean writes_stencil; /**< does fragment shader write stencil value? */
    boolean writes_samplemask; /**< does fragment shader write sample mask? */