glsl: simplified ast_type_qualifier::merge_into_[in|out]_qualifier API

Since we modified the way in which multiple repetitions of the same
layout-qualifier-name in a single declaration collapse into the
ast_type_qualifier class, we can simplify the
merge_into_[in|out]_qualifier APIs through removing the create_node
parameter.

Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
This commit is contained in:
Andres Gomez
2016-10-07 01:52:08 +03:00
parent be54a58da3
commit 93f90d7795
3 changed files with 10 additions and 12 deletions

View File

@@ -767,7 +767,7 @@ struct ast_type_qualifier {
*/
bool merge_into_out_qualifier(YYLTYPE *loc,
_mesa_glsl_parse_state *state,
ast_node* &node, bool create_node);
ast_node* &node);
/**
* Validate current qualifier against the global in one.
@@ -780,7 +780,7 @@ struct ast_type_qualifier {
*/
bool merge_into_in_qualifier(YYLTYPE *loc,
_mesa_glsl_parse_state *state,
ast_node* &node, bool create_node);
ast_node* &node);
bool validate_flags(YYLTYPE *loc,
_mesa_glsl_parse_state *state,