i965/fs: Detect multi-register MOVs correctly in register_coalesce.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 28 Jul 2015 08:25:59 +0000 (11:25 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 29 Jul 2015 10:27:12 +0000 (13:27 +0300)
commitd0a42b457fb905ce2cc12bb05110ef63656221c9
treeb10ffa55d164fda19e13cc4164d0844c29319ac4
parent2294ba9565fbae49f1fc77ca171e9d6aafa34005
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>
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp