Mesa (master): i965/vs: When MOVing to produce ABS, strip negate of the operand.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Jan 12 17:51:10 UTC 2011
Module: Mesa
Branch: master
Commit: 9351ef7a4418f5c1bb95a8f2016af0a15fa97679
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9351ef7a4418f5c1bb95a8f2016af0a15fa97679
Author: Eric Anholt <eric at anholt.net>
Date: Wed Jan 12 09:40:05 2011 -0800
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 files changed, 1 insertions(+), 0 deletions(-)
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:
More information about the mesa-commit
mailing list