glsl: fix heap-buffer-overflow
[mesa.git] / src / compiler / nir_types.cpp
index d1458134c0a3f65bda4ba683b537fbb9bfde2416..cc90efd2ae7e59a330a4e0fa0033493bd4f159c5 100644 (file)
@@ -184,6 +184,12 @@ glsl_type_is_array(const struct glsl_type *type)
    return type->is_array();
 }
 
+bool
+glsl_type_is_array_of_arrays(const struct glsl_type *type)
+{
+   return type->is_array_of_arrays();
+}
+
 bool
 glsl_type_is_struct(const struct glsl_type *type)
 {
@@ -216,6 +222,24 @@ glsl_sampler_type_is_array(const struct glsl_type *type)
    return type->sampler_array;
 }
 
+bool
+glsl_type_is_dual_slot(const struct glsl_type *type)
+{
+   return type->is_dual_slot();
+}
+
+bool
+glsl_type_is_numeric(const struct glsl_type *type)
+{
+   return type->is_numeric();
+}
+
+bool
+glsl_type_is_boolean(const struct glsl_type *type)
+{
+   return type->is_boolean();
+}
+
 const glsl_type *
 glsl_void_type(void)
 {