summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir_types.h
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2016-03-25 16:12:19 -0700
committerAlejandro PiƱeiro <apinheiro@igalia.com>2016-04-07 09:44:11 +0200
commit05db68024853fe3613480ca164485ccf67f1a7cc (patch)
tree15e4a496b6ffb0188d4636d564bc609167af6d57 /src/compiler/nir_types.h
parent828d84c8e2a85a771adf80b3b7f47d1e24f4840a (diff)
downloadexternal_mesa3d-05db68024853fe3613480ca164485ccf67f1a7cc.zip
external_mesa3d-05db68024853fe3613480ca164485ccf67f1a7cc.tar.gz
external_mesa3d-05db68024853fe3613480ca164485ccf67f1a7cc.tar.bz2
nir/types: Add a wrapper for count_attribute_slots
Reviewed-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'src/compiler/nir_types.h')
-rw-r--r--src/compiler/nir_types.h3
1 files changed, 3 insertions, 0 deletions
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);