mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
i965: Fix destination writemasking in the new FS.
This commit is contained in:
parent
0435cb348a
commit
91a037b5e1
1 changed files with 5 additions and 6 deletions
|
|
@ -832,12 +832,11 @@ fs_visitor::visit(ir_assignment *ir)
|
|||
}
|
||||
|
||||
for (i = 0; i < type_size(ir->lhs->type); i++) {
|
||||
if (i < 4 && !(write_mask & (1 << i)))
|
||||
continue;
|
||||
|
||||
inst = emit(fs_inst(BRW_OPCODE_MOV, l, r));
|
||||
if (ir->condition)
|
||||
inst->predicated = true;
|
||||
if (i >= 4 || (write_mask & (1 << i))) {
|
||||
inst = emit(fs_inst(BRW_OPCODE_MOV, l, r));
|
||||
if (ir->condition)
|
||||
inst->predicated = true;
|
||||
}
|
||||
l.reg_offset++;
|
||||
r.reg_offset++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue