From: Christoph Bumiller Date: Tue, 26 Feb 2013 20:05:03 +0000 (+0100) Subject: nv50/ir/opt: CALLs cannot load X-Git-Tag: mesa-9.2.1~2338 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1ed507ca46d721d9cab1bb036dc14b10c8a2a37b;p=platform%2Fupstream%2Fmesa.git nv50/ir/opt: CALLs cannot load --- diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index 6b3e5be..cc298d5b 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -203,6 +203,9 @@ LoadPropagation::visit(BasicBlock *bb) for (Instruction *i = bb->getEntry(); i; i = next) { next = i->next; + if (i->op == OP_CALL) // calls have args as sources, they must be in regs + continue; + if (i->srcExists(1)) checkSwapSrc01(i);