glsl_to_tgsi: implement ir_unop_logic_not using 1-x
authorBryan Cain <bryancain3@gmail.com>
Wed, 17 Aug 2011 15:01:30 +0000 (10:01 -0500)
committerBryan Cain <bryancain3@gmail.com>
Sat, 20 Aug 2011 19:00:40 +0000 (14:00 -0500)
commit8c31bc704826d46cad65c4d65b4b70de7144205a
tree1ae3f06ac1c2228db68d80ecbc6f7ca971129b29
parent112e68c5039ff717848304f0c28a07c5b39c7f45
glsl_to_tgsi: implement ir_unop_logic_not using 1-x

Since our logic values are 0.0 (false) and 1.0 (true), 1.0 - x accurately
implements logical not.

This is a port of commit 6ad08989d7c1 to glsl_to_tgsi.
src/mesa/state_tracker/st_glsl_to_tgsi.cpp