glsl: Remove ubo_qualifiers_allowed variable.
authorMatt Turner <mattst88@gmail.com>
Thu, 15 Aug 2013 18:14:00 +0000 (11:14 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 22 Aug 2013 05:47:02 +0000 (22:47 -0700)
No longer used.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/ast.h
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser.yy
src/glsl/glsl_parser_extras.cpp

index d227febd71e71560bb4b8fdb9a6a3b9298ca3d53..1c7fc63ac241a8c3115e71d155d2a768e405a1a8 100644 (file)
@@ -639,12 +639,6 @@ public:
     * is used to note these cases when no type is specified.
     */
    int invariant;
-
-   /**
-    * Flag indicating that these declarators are in a uniform block,
-    * allowing UBO type qualifiers.
-    */
-   bool ubo_qualifiers_allowed;
 };
 
 
index ac86c4242ac51ce2a0e2a542a0890800a290bfe8..335df11e3a6e0ce455165722509cee277263618d 100644 (file)
@@ -1951,7 +1951,6 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
                                 ir_variable *var,
                                 struct _mesa_glsl_parse_state *state,
                                 YYLTYPE *loc,
-                                bool ubo_qualifiers_allowed,
                                  bool is_parameter)
 {
    STATIC_ASSERT(sizeof(qual->flags.q) <= sizeof(qual->flags.i));
@@ -2846,7 +2845,7 @@ ast_declarator_list::hir(exec_list *instructions,
       }
 
       apply_type_qualifier_to_variable(& this->type->qualifier, var, state,
-                                      & loc, this->ubo_qualifiers_allowed, false);
+                                      & loc, false);
 
       if (this->type->qualifier.flags.q.invariant) {
         if ((state->target == vertex_shader) &&
@@ -3356,7 +3355,7 @@ ast_parameter_declarator::hir(exec_list *instructions,
     * for function parameters the default mode is 'in'.
     */
    apply_type_qualifier_to_variable(& this->type->qualifier, var, state, & loc,
-                                   false, true);
+                                   true);
 
    /* From page 17 (page 23 of the PDF) of the GLSL 1.20 spec:
     *
index 0ed34538bc9ee2d8772fd8c90faf5a7dc0c83213..d8e589d4991a739d7e27272b11c0b5ab143b325c 100644 (file)
@@ -2295,7 +2295,6 @@ member_declaration:
 
       $$ = new(ctx) ast_declarator_list(type);
       $$->set_location(yylloc);
-      $$->ubo_qualifiers_allowed = true;
 
       $$->declarations.push_degenerate_list_at_head(& $2->link);
    }
index 6976b09dd18e0fd0f0d7528b1e1302703eb871ca..8669b77629b6dfc3e66a73b78414899dd8e2f527 100644 (file)
@@ -1171,7 +1171,6 @@ ast_declarator_list::ast_declarator_list(ast_fully_specified_type *type)
 {
    this->type = type;
    this->invariant = false;
-   this->ubo_qualifiers_allowed = false;
 }
 
 void