mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
nvc0/ir: GP emit address must end up in $r0
This commit is contained in:
parent
30cb66cd74
commit
2ec5c8feb3
1 changed files with 4 additions and 0 deletions
|
|
@ -289,6 +289,10 @@ NVC0LoweringPass::visit(Function *fn)
|
||||||
// TODO: when we generate actual functions pass this value along somehow
|
// TODO: when we generate actual functions pass this value along somehow
|
||||||
bld.setPosition(BasicBlock::get(fn->cfg.getRoot()), false);
|
bld.setPosition(BasicBlock::get(fn->cfg.getRoot()), false);
|
||||||
gpEmitAddress = bld.loadImm(NULL, 0)->asLValue();
|
gpEmitAddress = bld.loadImm(NULL, 0)->asLValue();
|
||||||
|
if (fn->cfgExit) {
|
||||||
|
bld.setPosition(BasicBlock::get(fn->cfgExit)->getExit(), false);
|
||||||
|
bld.mkMovToReg(0, gpEmitAddress);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue