From: Timothy Arceri Date: Wed, 27 May 2015 02:02:40 +0000 (+1000) Subject: glsl: allow precision qualifiers for AoA X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9565e345285c71af064e2bb5e0ee762655310802;p=mesa.git glsl: allow precision qualifiers for AoA Reviewed-by: Ilia Mirkin --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 8cb46beab1e..de6a86de07e 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -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"