summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-09-01 20:03:44 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-09-14 14:50:57 -0700
commitf2d2156ba225a844723443d6f4356454e72112e0 (patch)
tree8639b1b9e0ba6a41ed35614666890d7746002cd5 /src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
parent645261c4b2a12b5724946f9f6d35f74e28ce760f (diff)
downloadexternal_mesa3d-f2d2156ba225a844723443d6f4356454e72112e0.zip
external_mesa3d-f2d2156ba225a844723443d6f4356454e72112e0.tar.gz
external_mesa3d-f2d2156ba225a844723443d6f4356454e72112e0.tar.bz2
i965/fs: Move region_contained_in to the IR header and fix for non-VGRF files.
Also changed the argument names since 'src' and 'dst' don't make that much sense outside of the context of copy propagation. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
index 80ad4b4..e4e6816 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -332,20 +332,6 @@ can_take_stride(fs_inst *inst, unsigned arg, unsigned stride,
return true;
}
-/**
- * Check that the register region read by src [src.offset,
- * src.offset + size_read[ is fully contained inside the register
- * region written by dst [dst.offset, dst.offset + size_written[.
- */
-static inline bool
-region_contained_in(const fs_reg &src, unsigned size_read,
- const fs_reg &dst, unsigned size_written)
-{
- return src.file == dst.file && src.nr == dst.nr &&
- src.offset >= dst.offset &&
- src.offset + size_read <= dst.offset + size_written;
-}
-
bool
fs_visitor::try_copy_propagate(fs_inst *inst, int arg, acp_entry *entry)
{