i965/fs: Generalize regions_overlap() from copy propagation to handle non-VGRF files.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 27 May 2016 06:20:19 +0000 (23:20 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 30 May 2016 06:41:38 +0000 (23:41 -0700)
commita9f00a9e535019747d041f4121c56404057465a3
tree6ca9115a8ce7eee9ecca9f89f5dc22ef2f55390e
parent4db93592de73d68ce38b3d64eddd451aa6c373cc
i965/fs: Generalize regions_overlap() from copy propagation to handle non-VGRF files.

This will be useful in several places.  The only externally visible
difference (other than non-VGRF files being supported now) is that the
region sizes are now passed in byte units instead of in GRF units
because the loss of precision would have become a problem in the SIMD
lowering pass.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_ir_fs.h