As the comment in precision_qualifier_allowed() says, they are only allowed
for float, integer and sampler types.
---
 src/glsl/ast_to_hir.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index df129df..3941554 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2002,7 +2002,6 @@ precision_qualifier_allowed(const glsl_type *type)
     */
    return type->is_float()
        || type->is_integer()
-       || type->is_record()
        || type->is_sampler();
 }
 
-- 
1.9.1

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to