mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
nv50/ir/ra: Fix maxGPR calculation for programs with multiple functions.
This commit is contained in:
parent
ca04e71024
commit
95ad9bca2f
1 changed files with 1 additions and 1 deletions
|
|
@ -1338,7 +1338,7 @@ GCRA::allocateRegisters(ArrayList& insns)
|
|||
if (prog->dbgFlags & NV50_IR_DEBUG_REG_ALLOC)
|
||||
func->print();
|
||||
} else {
|
||||
prog->maxGPR = regs.getMaxAssigned(FILE_GPR);
|
||||
prog->maxGPR = std::max(prog->maxGPR, regs.getMaxAssigned(FILE_GPR));
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue