nvc0: fix emission of 3rd src in SET_AND,OR,XOR
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Thu, 5 Apr 2012 20:53:46 +0000 (22:53 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sat, 14 Apr 2012 19:54:03 +0000 (21:54 +0200)
src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp

index 692b5b84f0ab0075e883a854c6126d44d20e915a..9c4108c6666d84a28f74cec0954abcfcf54e558c 100644 (file)
@@ -873,6 +873,9 @@ CodeEmitterNVC0::emitSET(const CmpInstruction *i)
    }
    emitForm_A(i, (static_cast<uint64_t>(hi) << 32) | lo);
 
+   if (i->op != OP_SET)
+      srcId(i->src(2), 32 + 17);
+
    if (i->def(0).getFile() == FILE_PREDICATE) {
       if (i->sType == TYPE_F32)
          code[1] += 0x10000000;