summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ast.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-04-10 22:41:46 -0700
committerKenneth Graunke <[email protected]>2016-04-12 14:06:42 -0700
commit929e44099f83acee74d07eb3e33a3c0d22f8bc6b (patch)
tree80652a6db68c72bc28586e40f73d160f077c3a3f /src/compiler/glsl/ast.h
parent7f0854724827bd34b9e64ab0c9cabc328e404c62 (diff)
glsl: Add a method to print error messages for illegal qualifiers.
Suggested by Timothy Arceri a while back on mesa-dev: https://lists.freedesktop.org/archives/mesa-dev/2016-February/107735.html Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Timothy Arceri <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ast.h')
-rw-r--r--src/compiler/glsl/ast.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/compiler/glsl/ast.h b/src/compiler/glsl/ast.h
index 7436edce88a..92aa39e64b8 100644
--- a/src/compiler/glsl/ast.h
+++ b/src/compiler/glsl/ast.h
@@ -736,6 +736,11 @@ struct ast_type_qualifier {
const ast_type_qualifier &q,
ast_node* &node, bool create_node);
+ bool validate_flags(YYLTYPE *loc,
+ _mesa_glsl_parse_state *state,
+ const char *message,
+ const ast_type_qualifier &allowed_flags);
+
ast_subroutine_list *subroutine_list;
};