[Mesa-dev] [PATCH 17/17] glsl: Precision qualifiers are not allowed on structs
Samuel Iglesias Gonsalvez
siglesias at igalia.com
Wed Jul 29 07:01:34 PDT 2015
From: Iago Toral Quiroga <itoral at igalia.com>
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 8b170c2..4a6ce71 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2025,7 +2025,6 @@ precision_qualifier_allowed(const glsl_type *type)
*/
return type->is_float()
|| type->is_integer()
- || type->is_record()
|| type->is_sampler();
}
--
2.4.3
More information about the mesa-dev
mailing list