i965/fs: Fix a bug in register coalesce
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 16 Sep 2014 23:34:23 +0000 (16:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Sep 2014 17:29:14 +0000 (10:29 -0700)
commit27d7ef094a55d6aeac22a11f20a9e819af4dd633
tree83efd32a1f697f6d2e37dcd76d9fa618524ccb70
parent16819b48ab0af244ccb5ef466a7343b1982792be
i965/fs: Fix a bug in register coalesce

This commit fixes a bug in register coalesce that happens when one register
is moved to another the proper number of times but the channels are
re-arranged.  When this happens, the previous code would happily coalesce
the registers regardless of the fact that the channel mappins were wrong.

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