i965/fs: Fix can_propagate_from() source/destination overlap check.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 2 Sep 2016 04:20:18 +0000 (21:20 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:55 +0000 (14:50 -0700)
commit5cc6425d708a9b8c660c2f43f5e277c507c98bf0
tree89e8d3c86a338d420b3e3a05deff12347b882e1c
parent9ae77d702043231571b5ef08951224e3c77baddd
i965/fs: Fix can_propagate_from() source/destination overlap check.

The previous overlap condition only made sure that the VGRF numbers or
GRF-aligned offsets were different without taking the amount of data
written and read by the instruction into consideration.  Use the
regions_overlap() helper instead.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp