Ken noted this in a review of this patch that I pushed early.
---
 src/glsl/opt_array_splitting.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/glsl/opt_array_splitting.cpp b/src/glsl/opt_array_splitting.cpp
index f11b516..e41818f 100644
--- a/src/glsl/opt_array_splitting.cpp
+++ b/src/glsl/opt_array_splitting.cpp
@@ -348,8 +348,7 @@ optimize_split_arrays(exec_list *instructions, bool linked)
       const struct glsl_type *subtype;
 
       if (type->is_matrix())
-        subtype = glsl_type::get_instance(GLSL_TYPE_FLOAT,
-                                          type->vector_elements, 1);
+        subtype = type->column_type();
       else
         subtype = type->fields.array;
 
-- 
1.7.10

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to