i965/fs: A little harmless refactoring of register_coalesce
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Sep 2014 23:42:10 +0000 (16:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:14 +0000 (10:29 -0700)
commit1030ee6e9b0cc6c05a7f25c17c0cf722a6731c89
tree9ac9985b5dee422ed585d5f2298386ae8c275520
parentf91b566f55390d1a0e472ac970d017374b91ee83
i965/fs: A little harmless refactoring of register_coalesce

Just pass the visitor into is_copy_payload() and is_coalesce_candidate()
instead of a register size and the virtual_grf_sizes array.  Among other
things, this makes the code more obvious because you don't have to figure
out where src_size came from.

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp