[Mesa-dev] [PATCH 6/6] glsl: avoid hitting assert for arrays of arrays

Timothy Arceri t_arceri at yahoo.com.au
Mon May 12 04:16:32 PDT 2014


Also add TODO comment about adding proper support

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

diff --git a/src/glsl/ir_set_program_inouts.cpp b/src/glsl/ir_set_program_inouts.cpp
index 5163eb2..779cf2a 100644
--- a/src/glsl/ir_set_program_inouts.cpp
+++ b/src/glsl/ir_set_program_inouts.cpp
@@ -174,6 +174,12 @@ ir_set_program_inouts_visitor::try_mark_partial_variable(ir_variable *var,
       type = type->fields.array;
    }
 
+   /* TODO: implement proper arrays of arrays support
+    * for now let the caller mark whole variable as used.
+    */
+   if (type->is_array() && type->fields.array->is_array())
+      return false;
+
    /* The code below only handles:
     *
     * - Indexing into matrices
-- 
1.9.0



More information about the mesa-dev mailing list