[Mesa-dev] [PATCH 1/1] glsl: support indexing of arrays of arrays in ir_set_program_inouts

Timothy Arceri t_arceri at yahoo.com.au
Wed Jan 22 13:48:59 PST 2014


Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
---
 src/glsl/ir_set_program_inouts.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/glsl/ir_set_program_inouts.cpp b/src/glsl/ir_set_program_inouts.cpp
index 5163eb2..11b14ce 100644
--- a/src/glsl/ir_set_program_inouts.cpp
+++ b/src/glsl/ir_set_program_inouts.cpp
@@ -188,7 +188,8 @@ ir_set_program_inouts_visitor::try_mark_partial_variable(ir_variable *var,
    if (!(type->is_matrix() ||
         (type->is_array() &&
          (type->fields.array->is_numeric() ||
-          type->fields.array->is_boolean())))) {
+          type->fields.array->is_boolean() ||
+          type->fields.array->is_array())))) {
       assert(!"Unexpected indexing in ir_set_program_inouts");
 
       /* For safety in release builds, in case we ever encounter unexpected
-- 
1.8.3.1



More information about the mesa-dev mailing list