nir/types: Add glsl_type_is_unsized_array helper
authorAntia Puentes <apuentes@igalia.com>
Thu, 15 Nov 2018 08:13:08 +0000 (09:13 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 12 Jul 2019 21:42:41 +0000 (23:42 +0200)
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir_types.cpp
src/compiler/nir_types.h

index 3b6362e66fa50e999b9c6f5d202c63d7cecc8178..15c752676f4e3bbce651f1f1c6482617adccfc00 100644 (file)
@@ -279,6 +279,12 @@ glsl_type_is_array(const struct glsl_type *type)
    return type->is_array();
 }
 
+bool
+glsl_type_is_unsized_array(const struct glsl_type *type)
+{
+   return type->is_unsized_array();
+}
+
 bool
 glsl_type_is_array_of_arrays(const struct glsl_type *type)
 {
index 9efe4b4770c521e2cc4a12b0f98b4e32678ccebd..7b2512792b8b210cf184471734469f8a3b6556f3 100644 (file)
@@ -121,6 +121,7 @@ bool glsl_type_is_vector_or_scalar(const struct glsl_type *type);
 bool glsl_type_is_matrix(const struct glsl_type *type);
 bool glsl_matrix_type_is_row_major(const struct glsl_type *type);
 bool glsl_type_is_array(const struct glsl_type *type);
+bool glsl_type_is_unsized_array(const struct glsl_type *type);
 bool glsl_type_is_array_of_arrays(const struct glsl_type *type);
 bool glsl_type_is_array_or_matrix(const struct glsl_type *type);
 bool glsl_type_is_struct(const struct glsl_type *type);