mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
radeon/llvm: fix calculation of max register number
Signed-off-by: Christian König <deathsimple@vodafone.de> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
parent
a488fdd3d9
commit
6574fe3c4a
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ void SICodeEmitter::InitProgramInfo(MachineFunction &MF) {
|
|||
assert("!Unknown register class");
|
||||
}
|
||||
hwReg = RI->getHWRegNum(reg);
|
||||
maxUsed = ((hwReg + 1) * width) - 1;
|
||||
maxUsed = hwReg + width - 1;
|
||||
if (isSGPR) {
|
||||
MaxSGPR = maxUsed > MaxSGPR ? maxUsed : MaxSGPR;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue