[Mesa-dev] [PATCH] Allow sampler arrays to have precision qualifier
Kevin Rogovin
kevin.rogovin at intel.com
Mon Feb 3 09:49:03 CET 2014
Fixes a minor oversight where a precision qualifier was not
allowed for an array of samplers.
---
src/glsl/ast_to_hir.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 1bfb4e5..08fd0d3 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -3397,7 +3397,8 @@ ast_declarator_list::hir(exec_list *instructions,
&& !var->type->is_sampler()
&& !(var->type->is_array()
&& (var->type->fields.array->is_float()
- || var->type->fields.array->is_integer()))) {
+ || var->type->fields.array->is_integer()
+ || var->type->fields.array->is_sampler()))) {
_mesa_glsl_error(&loc, state,
"precision qualifiers apply only to floating point"
--
1.8.1.2
More information about the mesa-dev
mailing list