Mesa (master): nir/types: Add a wrapper for count_attribute_slots
Alejandro Pinheiro
apinheiro at kemper.freedesktop.org
Thu Apr 7 07:47:00 UTC 2016
Module: Mesa
Branch: master
Commit: 05db68024853fe3613480ca164485ccf67f1a7cc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=05db68024853fe3613480ca164485ccf67f1a7cc
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Fri Mar 25 16:12:19 2016 -0700
nir/types: Add a wrapper for count_attribute_slots
Reviewed-by: Rob Clark <robdclark at gmail.com>
---
src/compiler/nir_types.cpp | 7 +++++++
src/compiler/nir_types.h | 3 +++
2 files changed, 10 insertions(+)
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
index 3669cfe..70e9cd3 100644
--- a/src/compiler/nir_types.cpp
+++ b/src/compiler/nir_types.cpp
@@ -124,6 +124,13 @@ 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,
+ bool vertex_input_slots)
+{
+ return type->count_attribute_slots(vertex_input_slots);
+}
+
const char *
glsl_get_struct_elem_name(const struct glsl_type *type, unsigned index)
{
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index 0748783..5efdd85 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -68,6 +68,9 @@ 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,
+ bool vertex_input_slots);
+
const char *glsl_get_struct_elem_name(const struct glsl_type *type,
unsigned index);
More information about the mesa-commit
mailing list