r600g: Don't negate result of ABS instruction

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Fabian Bieler 2011-02-25 10:11:37 +01:00 committed by Dave Airlie
parent d42c9433b0
commit b6d4021393

View file

@ -1014,6 +1014,8 @@ static int tgsi_op2_s(struct r600_shader_ctx *ctx, int swap)
break;
case TGSI_OPCODE_ABS:
alu.src[0].abs = 1;
/* negation is performed after absolute value is taken */
alu.src[0].neg = 0;
break;
default:
break;