[Mesa-dev] [PATCH 4/6] glsl: support packing of arrays of arrays

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


Signed-off-by: Timothy Arceri <t_arceri at yahoo.com.au>
---
 src/glsl/lower_packed_varyings.cpp | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp
index e865474..b641d6d 100644
--- a/src/glsl/lower_packed_varyings.cpp
+++ b/src/glsl/lower_packed_varyings.cpp
@@ -590,14 +590,7 @@ lower_packed_varyings_visitor::needs_lowering(ir_variable *var)
    if (var->data.explicit_location)
       return false;
 
-   const glsl_type *type = var->type;
-   if (this->gs_input_vertices != 0) {
-      assert(type->is_array());
-      type = type->element_type();
-   }
-   if (type->is_array())
-      type = type->fields.array;
-   if (type->vector_elements == 4)
+   if (var->type->outermost_element_type()->vector_elements == 4)
       return false;
    return true;
 }
-- 
1.9.0



More information about the mesa-dev mailing list