i965/fs: Change region_contained_in() to use byte units.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 2 Sep 2016 02:47:56 +0000 (19:47 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:57 +0000 (14:50 -0700)
commit645261c4b2a12b5724946f9f6d35f74e28ce760f
tree84f3a5d353acaa30e5d7c3421b8cf33ffe9e709c
parent1c67e272475f576c8ab4b2be367f4c3c664cb23c
i965/fs: Change region_contained_in() to use byte units.

This makes the function less annoying to use and more accurate -- We
shouldn't propagate a copy into a register region that wasn't fully
contained in the destination of the copy (IOW, a source region that
wasn't fully defined by the copy) just because the number of registers
written and read by each instruction happened to get rounded up to the
same GRF multiple.

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