Mesa (7.9): i965/vs: When MOVing to produce ABS, strip negate of the operand.
Ian Romanick
idr at kemper.freedesktop.org
Sat Feb 5 00:53:42 UTC 2011
Module: Mesa
Branch: 7.9
Commit: 9acbde11f53c551de80710b4e4eee84b8e203fbe
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9acbde11f53c551de80710b4e4eee84b8e203fbe
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.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
(cherry picked from commit 9351ef7a4418f5c1bb95a8f2016af0a15fa97679)
---
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 4f09da8..c6c2b0e 100644
--- a/src/mesa/drivers/dri/i965/brw_vs_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_vs_emit.c
@@ -1719,6 +1719,7 @@ void brw_vs_emit(struct brw_vs_compile *c )
switch (inst->Opcode) {
case OPCODE_ABS:
+ args[0].negate = GL_FALSE;
brw_MOV(p, dst, brw_abs(args[0]));
break;
case OPCODE_ADD:
More information about the mesa-commit
mailing list