i965/fs: Fix compute-to-mrf VGRF region coverage condition.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 27 May 2016 23:41:35 +0000 (16:41 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 31 May 2016 22:57:40 +0000 (15:57 -0700)
commit4b0ec9f4759bab68b51e2f410e9305e39c1e1e7f
tree9fad393dc096e0574b6e57b84d7a3c715ce89819
parentbb61e24787952a4796a687a86200a05cf83af7e9
i965/fs: Fix compute-to-mrf VGRF region coverage condition.

Compute-to-mrf was checking whether the destination of scan_inst is
more than one component (making assumptions about the instruction data
type) in order to find out whether the result is being fully copied
into the MRF destination, which is rather inaccurate in cases where a
single-component instruction is only partially contained in the source
region, or when the execution size of the copy and scan_inst
instructions differ.  Instead check whether the destination region of
the instruction is really contained within the bounds of the source
region of the copy.

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.cpp