summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-10-26 19:45:30 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-12-24 00:47:19 -0800
commit4ff4310a783cb4815d99e2991697d9b300bc7d32 (patch)
treef3764c53d2dcec5ceb1ef68a129bd493e6b070c6 /src
parent0bc1b0fd2362df78f47d208e0fde4ff2183b5521 (diff)
downloadexternal_mesa3d-4ff4310a783cb4815d99e2991697d9b300bc7d32.zip
external_mesa3d-4ff4310a783cb4815d99e2991697d9b300bc7d32.tar.gz
external_mesa3d-4ff4310a783cb4815d99e2991697d9b300bc7d32.tar.bz2
nir/types: Expose glsl_type::count_attribute_slots()
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/nir_types.cpp6
-rw-r--r--src/glsl/nir/nir_types.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp
index 27db579..54751cb 100644
--- a/src/glsl/nir/nir_types.cpp
+++ b/src/glsl/nir/nir_types.cpp
@@ -124,6 +124,12 @@ glsl_get_aoa_size(const struct glsl_type *type)
return type->arrays_of_arrays_size();
}
+unsigned
+glsl_count_attribute_slots(const struct glsl_type *type)
+{
+ return type->count_attribute_slots();
+}
+
const char *
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
{
diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h
index 9cc71e8..1bae84a 100644
--- a/src/glsl/nir/nir_types.h
+++ b/src/glsl/nir/nir_types.h
@@ -67,6 +67,8 @@ unsigned glsl_get_length(const struct glsl_type *type);
unsigned glsl_get_aoa_size(const struct glsl_type *type);
+unsigned glsl_count_attribute_slots(const struct glsl_type *type);
+
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
unsigned index);