i965/fs: Implement new ir_unop_u2i and ir_unop_i2u opcodes.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 14 Jun 2011 20:04:32 +0000 (13:04 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 29 Jun 2011 23:07:12 +0000 (16:07 -0700)
commitb633ddeb9fd951ddc49e8a3fd25a946e5a16361f
treebf046b12091d8ad0db9006846c0e545623167c21
parent006d5a1aa4f9e07ceefdbb68324e9806f737a71c
i965/fs: Implement new ir_unop_u2i and ir_unop_i2u opcodes.

No MOV is necessary since signed/unsigned integers share the same
bit-representation; it's simply a question of interpretation.  In
particular, the fs_reg::imm union shouldn't need updating.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs_channel_expressions.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp