i965/fs: When producing ir_unop_abs of an operand, strip negate.

We were returning the negative absolute value, instead of the absolute
value.  Fixes glsl-fs-abs-neg.
(cherry picked from commit ab56e3be9a)
This commit is contained in:
Eric Anholt 2011-01-12 09:37:07 -08:00
parent a702858139
commit e15ad414d0

View file

@ -859,6 +859,7 @@ fs_visitor::visit(ir_expression *ir)
break;
case ir_unop_abs:
op[0].abs = true;
op[0].negate = false;
this->result = op[0];
break;
case ir_unop_sign: