diff options
author | Ilia Mirkin <[email protected]> | 2015-05-03 18:38:52 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-05-22 16:51:05 -0400 |
commit | 0ec6b8ea8ce0929ecacf6edc8db198b7b9604f18 (patch) | |
tree | 9ec60bd10659d6f3c4f6ab769a811d5cbadb8293 /src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | |
parent | 491adb61d25eef8afe2615e0fd842dda20b17004 (diff) |
nvc0/ir: avoid jumping to a sched instruction
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp index be6fe9574df..b352d0a9690 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp @@ -1406,6 +1406,8 @@ CodeEmitterNVC0::emitFlow(const Instruction *i) } else if (mask & 2) { int32_t pcRel = f->target.bb->binPos - (codeSize + 8); + if (writeIssueDelays && !(f->target.bb->binPos & 0x3f)) + pcRel += 8; // currently we don't want absolute branches assert(!f->absolute); code[0] |= (pcRel & 0x3f) << 26; |