Mesa (master): glsl: allow precision qualifiers for AoA
Timothy Arceri
tarceri at kemper.freedesktop.org
Sat Jul 4 03:57:44 UTC 2015
Module: Mesa
Branch: master
Commit: 9565e345285c71af064e2bb5e0ee762655310802
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9565e345285c71af064e2bb5e0ee762655310802
Author: Timothy Arceri <t_arceri at yahoo.com.au>
Date: Wed May 27 12:02:40 2015 +1000
glsl: allow precision qualifiers for AoA
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/glsl/ast_to_hir.cpp | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 8cb46be..de6a86d 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"
More information about the mesa-commit
mailing list