diff options
author | Christoph Bumiller <[email protected]> | 2012-12-08 15:06:43 +0100 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-12-08 22:46:37 +0100 |
commit | 7c6584b9968ff1af0798d0a783142052b43c1dc0 (patch) | |
tree | c8fabd8c93150e2ed55ebb7c9570574aa11e4f39 /src/gallium/drivers/nvc0 | |
parent | 4b73cdb864aef6d64c35a7ab9a59e4ee4e3f9d0f (diff) |
nvc0/ir/emit: fix check for flags register use in logic ops
Diffstat (limited to 'src/gallium/drivers/nvc0')
-rw-r--r-- | src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp | 6 |
1 files changed, 3 insertions, 3 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 92496a3b6d8..ab4fb9498d9 100644 --- a/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nvc0/codegen/nv50_ir_emit_nvc0.cpp @@ -647,17 +647,17 @@ CodeEmitterNVC0::emitLogicOp(const Instruction *i, uint8_t subOp) if (isLIMM(i->src(1), TYPE_U32)) { emitForm_A(i, HEX64(38000000, 00000002)); - if (i->srcExists(2)) + if (i->flagsDef >= 0) code[1] |= 1 << 26; } else { emitForm_A(i, HEX64(68000000, 00000003)); - if (i->srcExists(2)) + if (i->flagsDef >= 0) code[1] |= 1 << 16; } code[0] |= subOp << 6; - if (i->srcExists(2)) // carry + if (i->flagsSrc >= 0) // carry code[0] |= 1 << 5; if (i->src(0).mod & Modifier(NV50_IR_MOD_NOT)) code[0] |= 1 << 9; |