diff options
author | Eric Anholt <eric@anholt.net> | 2011-01-12 09:40:05 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-01-12 09:50:34 -0800 |
commit | 9351ef7a4418f5c1bb95a8f2016af0a15fa97679 (patch) | |
tree | 45345013b1bddc7821b6133cd700a5e1251af649 /src/mesa/drivers | |
parent | ab56e3be9aae54602372427755305c354821e105 (diff) |
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.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | 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 fe9737d043..0411ce0b36 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: |