From 9351ef7a4418f5c1bb95a8f2016af0a15fa97679 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 12 Jan 2011 09:40:05 -0800 Subject: 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. --- src/mesa/drivers/dri/i965/brw_vs_emit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers') 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: -- cgit v1.2.3