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.
This commit is contained in:
Eric Anholt
2011-01-12 09:40:05 -08:00
parent ab56e3be9a
commit 9351ef7a44
+1
View File
@@ -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: