gk110/ir: fix set with a register dest to not auto-set the abs flag
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 29 Apr 2015 22:01:53 +0000 (18:01 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 29 Apr 2015 22:03:19 +0000 (18:03 -0400)
This was causing src0 to always have the absolute value flag set.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index a73bee272d77abb33c5241f53e9a77a456b40b52..d7c6b808fbf8a0fb4763bb7cdf9c3e89f25452cf 100644 (file)
@@ -971,7 +971,7 @@ CodeEmitterGK110::emitSET(const CmpInstruction *i)
       code[0] |= 0x1c;
    } else {
       switch (i->sType) {
-      case TYPE_F32: op2 = 0x000; op1 = 0x820; break;
+      case TYPE_F32: op2 = 0x000; op1 = 0x800; break;
       case TYPE_F64: op2 = 0x080; op1 = 0x900; break;
       default:
          op2 = 0x1a8;