summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-05-27 12:02:40 +1000
committerTimothy Arceri <[email protected]>2015-07-04 13:57:25 +1000
commit9565e345285c71af064e2bb5e0ee762655310802 (patch)
tree939e7ae25abdf56dbc4a52c565e19bc0d634737e /src/glsl/ast_to_hir.cpp
parentf70719cc4b64e12310dfe8825a8e2d4bce970673 (diff)
glsl: allow precision qualifiers for AoA
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp4
1 files changed, 1 insertions, 3 deletions
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"