[Mesa-dev] [PATCH 09/20] nir: Add glsl_get_type_without_array() wrapper

Abdiel Janulgue abdiel.janulgue at linux.intel.com
Fri Sep 11 01:33:23 PDT 2015


Signed-off-by: Abdiel Janulgue <abdiel.janulgue at linux.intel.com>
---
 src/glsl/nir/nir_types.cpp | 6 ++++++
 src/glsl/nir/nir_types.h   | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp
index a0caf0e..332da8f 100644
--- a/src/glsl/nir/nir_types.cpp
+++ b/src/glsl/nir/nir_types.cpp
@@ -171,3 +171,9 @@ glsl_get_array_size(const struct glsl_type *type)
 {
    return type->array_size();
 }
+
+const struct glsl_type *
+glsl_get_type_without_array(const struct glsl_type *type)
+{
+   return type->without_array();
+}
diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h
index 72b980a..da9544c 100644
--- a/src/glsl/nir/nir_types.h
+++ b/src/glsl/nir/nir_types.h
@@ -49,6 +49,8 @@ const struct glsl_type *glsl_get_array_element(const struct glsl_type *type);
 
 const struct glsl_type *glsl_get_column_type(const struct glsl_type *type);
 
+const struct glsl_type *glsl_get_type_without_array(const struct glsl_type *type);
+
 enum glsl_base_type glsl_get_base_type(const struct glsl_type *type);
 
 unsigned glsl_get_array_size(const struct glsl_type *type);
-- 
1.9.1



More information about the mesa-dev mailing list