mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 10:20:09 +01:00
i965: Don't do 1/w multiplication in new FS for gen6
Not needed now that we're doing barycentric.
This commit is contained in:
parent
5d99b01501
commit
fe6efc25ed
1 changed files with 8 additions and 6 deletions
|
|
@ -810,12 +810,14 @@ fs_visitor::emit_general_interpolation(ir_variable *ir)
|
|||
}
|
||||
attr.reg_offset -= type->vector_elements;
|
||||
|
||||
for (unsigned int c = 0; c < type->vector_elements; c++) {
|
||||
emit(fs_inst(BRW_OPCODE_MUL,
|
||||
attr,
|
||||
attr,
|
||||
this->pixel_w));
|
||||
attr.reg_offset++;
|
||||
if (intel->gen < 6) {
|
||||
for (unsigned int c = 0; c < type->vector_elements; c++) {
|
||||
emit(fs_inst(BRW_OPCODE_MUL,
|
||||
attr,
|
||||
attr,
|
||||
this->pixel_w));
|
||||
attr.reg_offset++;
|
||||
}
|
||||
}
|
||||
location++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue