i965/fs: Don't mix integer/float immediates in i2b handling.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Jan 2013 22:19:56 +0000 (14:19 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 12 Jan 2013 23:35:38 +0000 (15:35 -0800)
commitfea648db08114e0e10c164e2d6507b71bd22f63a
treedb8518e23248ee523d4ffce5391f97b5b3513182
parent4a6753926f51accd6f71d9caea18b15a99b8be24
i965/fs: Don't mix integer/float immediates in i2b handling.

The simulator gets very angry about our i2b code:

cmp.ne(16)      g3<1>D          g2<0,1,0>D      0F

We can't mix integer DWord and float types.  The only reason to use 0F
here was to share code with f2b.  Split it and use 0D instead.

While we don't believe anything bad will actually happen because of
this, it's nice to fix the warnings and easy enough to do.

Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp