From: Eric Anholt Date: Wed, 12 Jan 2011 17:40:05 +0000 (-0800) Subject: i965/vs: When MOVing to produce ABS, strip negate of the operand. X-Git-Tag: mesa-7.11-rc1~2813 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9351ef7a4418f5c1bb95a8f2016af0a15fa97679;p=platform%2Fupstream%2Fmesa.git i965/vs: When MOVing to produce ABS, strip negate of the operand. We were returning the negative absolute value, instead of the absolute value. Fixes glsl-vs-abs-neg. --- diff --git a/src/mesa/drivers/dri/i965/brw_vs_emit.c b/src/mesa/drivers/dri/i965/brw_vs_emit.c index fe9737d..0411ce0 100644 --- a/src/mesa/drivers/dri/i965/brw_vs_emit.c +++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c @@ -1942,6 +1942,7 @@ void brw_vs_emit(struct brw_vs_compile *c ) switch (inst->Opcode) { case OPCODE_ABS: + args[0].negate = false; brw_MOV(p, dst, brw_abs(args[0])); break; case OPCODE_ADD: