i965/fs: Use overwrites_reg() instead of dst.equals().
authorMatt Turner <mattst88@gmail.com>
Wed, 19 Aug 2015 00:10:44 +0000 (17:10 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 28 Aug 2015 18:30:47 +0000 (11:30 -0700)
commitf3d0a894af61d9ccc3f00086fbac3809bfed1160
treec055497380597a91065b844e2a63be268482faae
parent8765f1d7ddfb00dc5b202e4e679ebe640a547d50
i965/fs: Use overwrites_reg() instead of dst.equals().

equals() returns false for registers with different types, using it
isn't appropriate to determine whether an is overwriting a register.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_register_coalesce.cpp