i965/fs: Use source's original type in register_coalesce().
authorMatt Turner <mattst88@gmail.com>
Fri, 15 Nov 2013 19:09:47 +0000 (11:09 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 20 Nov 2013 23:04:52 +0000 (15:04 -0800)
commit9793fc1335f11b4131d6db680bec567dcfccfb5f
treeb62d43e285d79c6ec28f98e3983c4387f62403ea
parent060159820c05c4e9a9b577844387555b11092391
i965/fs: Use source's original type in register_coalesce().

Previously, register_coalesce() would modify

   mov   vgrf1:f  vgrf2:f
   cmp   null     vgrf3:d  vgrf1:d

to be

   cmp   null     vgrf3:d  vgrf2:f

and incorrectly use vgrf2's type in the instruction that the mov was
coalesced into.

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