Skip to content

Commit 6f9bb97

Browse files
jfuentespszymich
authored andcommitted
Bug fix for setting GRF based on reg pressure
(cherry picked from commit 791d81d)
1 parent ed9e4d9 commit 6f9bb97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

visa/G4_Kernel.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2118,6 +2118,8 @@ unsigned GRFMode::setModeByRegPressure(unsigned maxRP, unsigned largestInputReg)
21182118
break;
21192119
}
21202120
}
2121+
if (i == size)
2122+
return getMaxGRF();
21212123
return configs[currentMode].numGRF;
21222124
}
21232125

0 commit comments

Comments
 (0)