projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab56e3b
)
i965/vs: When MOVing to produce ABS, strip negate of the operand.
author
Eric Anholt
<eric@anholt.net>
Wed, 12 Jan 2011 17:40:05 +0000
(09:40 -0800)
committer
Eric Anholt
<eric@anholt.net>
Wed, 12 Jan 2011 17:50:34 +0000
(09:50 -0800)
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
patch
|
blob
|
history
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
(file)
--- 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: