i965/fs_inst: Add an is_copy_payload helper
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Apr 2015 22:38:23 +0000 (15:38 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 6 May 2015 17:29:30 +0000 (10:29 -0700)
commit32af7d4188e286a525081ada9965070dd41dbab7
tree9169a9b13b17333c526f4e575608140b54118dad
parent76c1086f2dfb37a1edf6d2df6eebbe11ccbfc50b
i965/fs_inst: Add an is_copy_payload helper

This commit adds a new is_copy_payload helper to fs_inst that takes the
place of the similarly named functions in cse and register coalesce.  The
two is_copy_payload functions in CSE and register coalesce were subtly
different and potentially subtly broken.  The new version unifies the two
and should be more correct.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_cse.cpp
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp
src/mesa/drivers/dri/i965/brw_ir_fs.h