[Mesa-dev] [PATCH 8/9] glsl: Allow arrays of arrays as input to vertex shader
Timothy Arceri
t_arceri at yahoo.com.au
Wed Jan 15 22:27:29 PST 2014
Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
---
src/glsl/ast_to_hir.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 3054b9c..a83ef9c 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -3196,6 +3196,10 @@ ast_declarator_list::hir(exec_list *instructions,
if (state->is_version(120, 300))
break;
/* FALLTHROUGH */
+ case GLSL_TYPE_ARRAY:
+ if (state->ARB_arrays_of_arrays_enable)
+ break;
+ /* FALLTHROUGH */
default:
_mesa_glsl_error(& loc, state,
"vertex shader input / attribute cannot have "
--
1.8.3.1
More information about the mesa-dev
mailing list