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/glsl/ir_set_program_inouts.cpp | |
parent | 9586468c03ba9d0c488882eba1d870acd7adfd9e (diff) | |
download | external_mesa3d-9bac27dbf92d32cd8685868d21d0317a5a56f333.zip external_mesa3d-9bac27dbf92d32cd8685868d21d0317a5a56f333.tar.gz external_mesa3d-9bac27dbf92d32cd8685868d21d0317a5a56f333.tar.bz2 |
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/glsl/ir_set_program_inouts.cpp')
-rw-r--r-- | src/compiler/glsl/ir_set_program_inouts.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/glsl/ir_set_program_inouts.cpp b/src/compiler/glsl/ir_set_program_inouts.cpp index df06923..6768d82 100644 --- a/src/compiler/glsl/ir_set_program_inouts.cpp +++ b/src/compiler/glsl/ir_set_program_inouts.cpp @@ -149,7 +149,7 @@ void ir_set_program_inouts_visitor::mark_whole_variable(ir_variable *var) { const glsl_type *type = var->type; - bool vertex_input = false; + bool is_vertex_input = false; if (this->shader_stage == MESA_SHADER_GEOMETRY && var->data.mode == ir_var_shader_in && type->is_array()) { type = type->fields.array; @@ -175,9 +175,9 @@ ir_set_program_inouts_visitor::mark_whole_variable(ir_variable *var) if (this->shader_stage == MESA_SHADER_VERTEX && var->data.mode == ir_var_shader_in) - vertex_input = true; + is_vertex_input = true; - mark(this->prog, var, 0, type->count_attribute_slots(vertex_input), + mark(this->prog, var, 0, type->count_attribute_slots(is_vertex_input), this->shader_stage); } |