mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
i965/fs: Detect multi-register MOVs correctly in register_coalesce.
register_coalesce() was considering the exec_size of the MOV instruction alone to decide whether the register at offset+1 of the source VGRF was being copied to inst->dst.reg_offset+1 of the destination VGRF, which is only a valid assumption if the move has a 32-bit execution type. Use regs_read() instead to find out the number of registers copied by the instruction. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
2294ba9565
commit
d0a42b457f
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ fs_visitor::register_coalesce()
|
|||
continue;
|
||||
}
|
||||
reg_to_offset[offset] = inst->dst.reg_offset;
|
||||
if (inst->exec_size == 16)
|
||||
if (inst->regs_written > 1)
|
||||
reg_to_offset[offset + 1] = inst->dst.reg_offset + 1;
|
||||
mov[offset] = inst;
|
||||
channels_remaining -= inst->regs_written;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue