Module: Mesa Branch: master Commit: 1896682d272c762b4dd5643a27d98b87a966b792 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1896682d272c762b4dd5643a27d98b87a966b792
Author: Kenneth Graunke <[email protected]> Date: Mon Mar 14 22:01:29 2016 -0700 compiler: Add a C wrapper for glsl_type::without_array(). Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Chris Forbes <[email protected]> --- src/compiler/nir_types.cpp | 6 ++++++ src/compiler/nir_types.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 62a1071..4ea7a2f 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -65,6 +65,12 @@ glsl_get_array_element(const glsl_type* type) } const glsl_type * +glsl_without_array(const glsl_type *type) +{ + return type->without_array(); +} + +const glsl_type * glsl_get_struct_field(const glsl_type *type, unsigned index) { return type->fields.structure[index].type; diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 851096f..31e4d20 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -47,6 +47,7 @@ const struct glsl_type *glsl_get_struct_field(const struct glsl_type *type, unsigned index); const struct glsl_type *glsl_get_array_element(const struct glsl_type *type); +const struct glsl_type *glsl_without_array(const struct glsl_type *type); const struct glsl_type *glsl_get_column_type(const struct glsl_type *type); _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
