glsl: tidy up IR after loop unrolling
[mesa.git] / src / compiler / nir_types.cpp
index 25980b94cdb663e3e08ac8919cfae9a8c38f0afd..5583bc01620ba3cb35ef6ad10ac725095fb66141 100644 (file)
@@ -48,6 +48,13 @@ glsl_without_array(const glsl_type *type)
    return type->without_array();
 }
 
+const glsl_type *
+glsl_get_array_instance(const glsl_type *type,
+                        unsigned array_size)
+{
+   return glsl_type::get_array_instance(type, array_size);
+}
+
 const glsl_type *
 glsl_get_struct_field(const glsl_type *type, unsigned index)
 {