Skip to content

Commit 85fa09e

Browse files
pratikasharigcbot
authored andcommitted
Internal change
Internal change
1 parent b4510d1 commit 85fa09e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

visa/G4_Kernel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,7 +2085,10 @@ unsigned GRFMode::findModeByRegPressure(unsigned maxRP, unsigned largestInputReg
20852085
// find appropiate GRF based on reg pressure
20862086
for (; i < size; i++) {
20872087
if (configs[i].VRTEnable && maxRP <= configs[i].numGRF &&
2088-
largestInputReg <= configs[i].numGRF) {
2088+
// Check that we've at least 8 GRFs over and above
2089+
// those blocked for kernel input. This helps cases
2090+
// where an 8 GRF variable shows up in entry BB.
2091+
(largestInputReg + 8) <= configs[i].numGRF) {
20892092
newGRF = configs[i].numGRF;
20902093
break;
20912094
}

0 commit comments

Comments
 (0)