mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
glsl: Use count_attribute_slots() in ir_set_program_inouts.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
7d95d2b4c9
commit
0b0dc03a31
1 changed files with 2 additions and 8 deletions
|
|
@ -110,14 +110,8 @@ ir_set_program_inouts_visitor::visit(ir_dereference_variable *ir)
|
|||
if (!is_shader_inout(ir->var))
|
||||
return visit_continue;
|
||||
|
||||
if (ir->type->is_array()) {
|
||||
mark(this->prog, ir->var, 0,
|
||||
ir->type->length * ir->type->fields.array->matrix_columns,
|
||||
this->shader_type == GL_FRAGMENT_SHADER);
|
||||
} else {
|
||||
mark(this->prog, ir->var, 0, ir->type->matrix_columns,
|
||||
this->shader_type == GL_FRAGMENT_SHADER);
|
||||
}
|
||||
mark(this->prog, ir->var, 0, ir->type->count_attribute_slots(),
|
||||
this->shader_type == GL_FRAGMENT_SHADER);
|
||||
|
||||
return visit_continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue