glsl: allow precision qualifiers for AoA
authorTimothy Arceri <t_arceri@yahoo.com.au>
Wed, 27 May 2015 02:02:40 +0000 (12:02 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Sat, 4 Jul 2015 03:57:25 +0000 (13:57 +1000)
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/glsl/ast_to_hir.cpp

index 8cb46beab1ecea34e42c21405fea23de10baca89..de6a86de07e1b8445edf3ab50c18db94a7b9e554 100644 (file)
@@ -3881,9 +3881,7 @@ ast_declarator_list::hir(exec_list *instructions,
        * an array of that type.
        */
       if (!(this->type->qualifier.precision == ast_precision_none
-          || precision_qualifier_allowed(var->type)
-          || (var->type->is_array()
-             && precision_qualifier_allowed(var->type->fields.array)))) {
+          || precision_qualifier_allowed(var->type->without_array()))) {
 
          _mesa_glsl_error(&loc, state,
                           "precision qualifiers apply only to floating point"