Skip to content

Commit 791d81d

Browse files
jfuentesigcbot
authored andcommitted
Bug fix for setting GRF based on reg pressure
1 parent 8644184 commit 791d81d

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)