mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
i965/fs: fix number of output components for doubles
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0297f1021a
commit
3cce67aff0
1 changed files with 9 additions and 4 deletions
|
|
@ -103,10 +103,15 @@ fs_visitor::nir_setup_single_output_varying(fs_reg *reg,
|
|||
}
|
||||
} else {
|
||||
assert(type->is_scalar() || type->is_vector());
|
||||
this->outputs[*location] = *reg;
|
||||
this->output_components[*location] = type->vector_elements;
|
||||
*reg = offset(*reg, bld, 4);
|
||||
(*location)++;
|
||||
unsigned num_elements = type->vector_elements;
|
||||
if (type->is_double())
|
||||
num_elements *= 2;
|
||||
for (unsigned count = 0; count < num_elements; count += 4) {
|
||||
this->outputs[*location] = *reg;
|
||||
this->output_components[*location] = MIN2(4, num_elements - count);
|
||||
*reg = offset(*reg, bld, 4);
|
||||
(*location)++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue