slang: ensure structure elements have their array length set
[mesa.git] / src / mesa / shader / slang / slang_typeinfo.c
index a5bcde404f65b54349011d2be3c885c5cb480d36..4a48bc8b8ee3aec83ecfaf98bb7abba0228fac47 100644 (file)
@@ -23,7 +23,7 @@
  */
 
 /**
- * \file slang_assemble_typeinfo.c
+ * \file slang_typeinfo.c
  * slang type info
  * \author Michal Krol
  */
@@ -790,6 +790,7 @@ _slang_typeof_operation(slang_operation * op,
                return GL_FALSE;
             }
             ti->can_be_referenced = _ti.can_be_referenced;
+            ti->array_len = field->array_len;
          }
          else {
             GLuint rows;