[Mesa-dev] [PATCH V2 6/8] glsl: Allow arrays of arrays as input to vertex shader
Timothy Arceri
t_arceri at yahoo.com.au
Tue Jan 21 04:19:50 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 226d128..62b7ec2 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -3176,6 +3176,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