diff options
author | Matt Turner <mattst88@gmail.com> | 2016-04-12 15:26:06 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-04-13 11:00:21 -0700 |
commit | 9bac27dbf92d32cd8685868d21d0317a5a56f333 (patch) | |
tree | 638589d26ee5bef6a6d60e1093f7a610a9293bbc /src/compiler/nir_types.cpp | |
parent | 9586468c03ba9d0c488882eba1d870acd7adfd9e (diff) |
glsl: Rename "vertex_input_slots" -> "is_vertex_input"
vertex_input_slots would be an appropriate name for an integer, but not
a bool.
Also remove a cond ? true : false from a count_attribute_slots() call
site, noticed during the rename.
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/compiler/nir_types.cpp')
-rw-r--r-- | src/compiler/nir_types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 70e9cd397fc..62a1071e444 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -126,9 +126,9 @@ glsl_get_aoa_size(const struct glsl_type *type) unsigned glsl_count_attribute_slots(const struct glsl_type *type, - bool vertex_input_slots) + bool is_vertex_input) { - return type->count_attribute_slots(vertex_input_slots); + return type->count_attribute_slots(is_vertex_input); } const char * |