We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f1fcd commit 731f79bCopy full SHA for 731f79b
visa/SpillManagerGMRF.cpp
@@ -1245,11 +1245,13 @@ SpillManagerGRF::createTransientGRFRangeDeclare (
1245
height = 1;
1246
}
1247
1248
- if( useScratchMsg_ )
+ bool usesStack = builder_->kernel.fg.getIsStackCallFunc() || builder_->kernel.fg.getHasStackCalls();
1249
+
1250
+ if (useScratchMsg_ || usesStack)
1251
{
- // Read/write size when using scratch msg descriptor is 32-bytes
- if( height == 1 && width < REG_BYTE_SIZE )
1252
- width = REG_BYTE_SIZE/region->getElemSize();
+ // the message will read/write a minimum of one GRF
1253
+ if (height == 1 && width < getGRFSize())
1254
+ width = getGRFSize() / region->getElemSize();
1255
1256
1257
G4_Declare * transientRangeDeclare =
0 commit comments