mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
nvc0: replace immd 0 with $rLASTGPR for emit/restart opcodes
Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
3723ff5223
commit
07d3972b49
1 changed files with 1 additions and 0 deletions
|
|
@ -494,6 +494,7 @@ NVC0LegalizePostRA::visit(BasicBlock *bb)
|
|||
i->setDef(0, NULL);
|
||||
if (i->src(0).getFile() == FILE_IMMEDIATE)
|
||||
i->setSrc(0, rZero); // initial value must be 0
|
||||
replaceZero(i);
|
||||
} else
|
||||
if (i->isNop()) {
|
||||
bb->remove(i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue