i965/fs: When producing ir_unop_abs of an operand, strip negate.
authorEric Anholt <eric@anholt.net>
Wed, 12 Jan 2011 17:37:07 +0000 (09:37 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 12 Jan 2011 17:50:10 +0000 (09:50 -0800)
commitab56e3be9aae54602372427755305c354821e105
tree865e157c3d3a53f0f30f9b66cf662aa5921deea3
parent416ca901389b049eaaf2edbce631396772dbeb20
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.
src/mesa/drivers/dri/i965/brw_fs.cpp