projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
anv: Merge in my TODO list items
[mesa.git]
/
src
/
compiler
/
nir_types.cpp
diff --git
a/src/compiler/nir_types.cpp
b/src/compiler/nir_types.cpp
index 62a1071e444c4166e106541b89e801ed467a1533..4ea7a2fcd38cf3f3dcddca8721ccb9dd3a4b3f5a 100644
(file)
--- a/
src/compiler/nir_types.cpp
+++ b/
src/compiler/nir_types.cpp
@@
-64,6
+64,12
@@
glsl_get_array_element(const glsl_type* type)
return type->fields.array;
}
return type->fields.array;
}
+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)
{
const glsl_type *
glsl_get_struct_field(const glsl_type *type, unsigned index)
{