mesa: fix code generation for ir_unop_sqrt
authorBrian Paul <brianp@vmware.com>
Thu, 2 Sep 2010 13:58:28 +0000 (07:58 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 2 Sep 2010 13:58:33 +0000 (07:58 -0600)
commitc9039fdb167865547dc9b3828d69b99209344999
treeda51405f2f1451d0eb74b57e26fe5c89045d703a
parent9eca0e2c3e9409b5da49d9a5052d3665e7d45bb1
mesa: fix code generation for ir_unop_sqrt

The CMP instruction needed to be flipped to properly handle
operand==0.

Fixes fd.o bug 29923.
src/mesa/program/ir_to_mesa.cpp