diff options
author | Christoph Bumiller <[email protected]> | 2012-04-05 22:53:46 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 21:54:03 +0200 |
commit | 12a2f5121d42f6f7cd94fe01f3cabe59280c62f8 (patch) | |
tree | 50a33966c11518cc187dac0136ad3ed8a934e73d /src/gallium/drivers | |
parent | f01efba60a37abfdefabecabe7abc899e76102ac (diff) |
nvc0: fix emission of 3rd src in SET_AND,OR,XOR
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp index 692b5b84f0a..9c4108c6666 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp @@ -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; |