@@ -705,10 +705,18 @@ int VISAKernelImpl::InitializeFastPath()
705
705
}
706
706
m_jitInfo = (FINALIZER_INFO*)m_mem.alloc (sizeof (FINALIZER_INFO));
707
707
708
- int value = 32 ;
709
- if (!getIntKernelAttributeValue (" FESPSize" , value ))
708
+ int feSPSize = 32 ;
709
+ if (!getIntKernelAttributeValue (" FESPSize" , feSPSize ))
710
710
{
711
- value = 32 ;
711
+ feSPSize = 32 ;
712
+ }
713
+ int spillMemOffset = 0 ;
714
+ if (getIntKernelAttributeValue (" SpillMemOffset" , spillMemOffset))
715
+ {
716
+ if (spillMemOffset > 0 )
717
+ {
718
+ getOptions ()->setOption (vISA_SpillMemOffset, (uint32_t )spillMemOffset);
719
+ }
712
720
}
713
721
714
722
void * addr = m_kernelMem->alloc (sizeof (class IR_Builder ));
@@ -717,7 +725,7 @@ int VISAKernelImpl::InitializeFastPath()
717
725
*m_kernel,
718
726
*m_kernelMem,
719
727
m_options,
720
- (value == 64 ),
728
+ (feSPSize == 64 ),
721
729
m_jitInfo,
722
730
m_pWaTable
723
731
);
@@ -1425,7 +1433,7 @@ int VISAKernelImpl::AddKernelAttribute(const char* attrName, int size, const voi
1425
1433
attr->size = (uint8_t )size;
1426
1434
attr->isInt = size != 0 && (!strcmp (attrName, " SLMSize" ) ||
1427
1435
!strcmp (attrName, " SurfaceUsage" ) ||
1428
- !strcmp (attrName, " StackSize " ) ||
1436
+ !strcmp (attrName, " SpillMemOffset " ) ||
1429
1437
!strcmp (attrName, " Scope" ) ||
1430
1438
!strcmp (attrName, " Target" ) ||
1431
1439
!strcmp (attrName, " ArgSize" ) ||
0 commit comments