diff options
author | Francisco Jerez <[email protected]> | 2012-04-30 15:22:27 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2013-03-12 12:55:33 +0100 |
commit | 95ad9bca2fd4c3d0c9d7b0b55e6cca034bec0377 (patch) | |
tree | 5c1c8df6cd65b4c0fee60b4e3d4e9cd884aa49f4 /src/gallium/drivers/nv50 | |
parent | ca04e71024ffa0de18a2c9c463da14915bd266f3 (diff) |
nv50/ir/ra: Fix maxGPR calculation for programs with multiple functions.
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp index b74faec1d4f..dbf43d43039 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_ra.cpp @@ -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: |