summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast.h
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2014-02-02 17:55:36 -0800
committerJordan Justen <jordan.l.justen@intel.com>2014-02-20 10:33:08 -0800
commit02dc74fbd72d82a21506a5984a92e5db08fcfc5c (patch)
tree2a8ea357a78c1c0b2293558390475462f926cb98 /src/glsl/ast.h
parent738c9c3c543b985b025a4a60fcc9c2e212e2d821 (diff)
glsl: parse invocations layout qualifier for ARB_gpu_shader5
_mesa_glsl_parse_state in_qualifier->invocations will store the invocations count. v3: * Use in_qualifier to allow the primitive to be specied separately from the invocations count (merge_qualifiers) Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Diffstat (limited to 'src/glsl/ast.h')
-rw-r--r--src/glsl/ast.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/ast.h b/src/glsl/ast.h
index c4f28b0cc90..2d7333f30f0 100644
--- a/src/glsl/ast.h
+++ b/src/glsl/ast.h
@@ -477,6 +477,11 @@ struct ast_type_qualifier {
unsigned read_only:1; /**< "readonly" qualifier. */
unsigned write_only:1; /**< "writeonly" qualifier. */
/** \} */
+
+ /** \name Layout qualifiers for GL_ARB_gpu_shader5 */
+ /** \{ */
+ unsigned invocations:1;
+ /** \} */
}
/** \brief Set of flags, accessed by name. */
q;
@@ -488,6 +493,9 @@ struct ast_type_qualifier {
/** Precision of the type (highp/medium/lowp). */
unsigned precision:2;
+ /** Geometry shader invocations for GL_ARB_gpu_shader5. */
+ int invocations;
+
/**
* Location specified via GL_ARB_explicit_attrib_location layout
*