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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9351ef7a4418f5c1bb95a8f2016af0a15fa97679;p=mesa.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 fe9737d043a..0411ce0b36c 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: