ir_to_mesa: Implement ir_unop_logic_not using 1-x
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 30 Jul 2011 17:48:10 +0000 (10:48 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 16 Aug 2011 21:09:40 +0000 (14:09 -0700)
commit6ad08989d7c10892919ce1cb9c88c4cf8b73e1dc
treeccfe5785ad6da03215438c05abe67ae269224dfc
parent3c9f172fe801a8e954a40affc38942b628b81bda
ir_to_mesa: 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.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/ir_to_mesa.cpp