Skip to content

Commit 5b4ad10

Browse files
Chen, Gang Ysys_zuul
authored andcommitted
Changes in code.
Change-Id: Ib625b84aceca8225ef0504b499200ed705bd97d0
1 parent 8094f8e commit 5b4ad10

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

visa/VISAKernelImpl.cpp

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -705,18 +705,10 @@ int VISAKernelImpl::InitializeFastPath()
705705
}
706706
m_jitInfo = (FINALIZER_INFO*)m_mem.alloc(sizeof(FINALIZER_INFO));
707707

708-
int feSPSize = 32;
709-
if (!getIntKernelAttributeValue("FESPSize", feSPSize))
708+
int value = 32;
709+
if (!getIntKernelAttributeValue("FESPSize", value))
710710
{
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-
}
711+
value = 32;
720712
}
721713

722714
void* addr = m_kernelMem->alloc(sizeof(class IR_Builder));
@@ -725,7 +717,7 @@ int VISAKernelImpl::InitializeFastPath()
725717
*m_kernel,
726718
*m_kernelMem,
727719
m_options,
728-
(feSPSize == 64),
720+
(value == 64),
729721
m_jitInfo,
730722
m_pWaTable
731723
);
@@ -1433,7 +1425,7 @@ int VISAKernelImpl::AddKernelAttribute(const char* attrName, int size, const voi
14331425
attr->size = (uint8_t)size;
14341426
attr->isInt = size != 0 && (!strcmp(attrName, "SLMSize") ||
14351427
!strcmp(attrName, "SurfaceUsage") ||
1436-
!strcmp(attrName, "SpillMemOffset") ||
1428+
!strcmp(attrName, "StackSize") ||
14371429
!strcmp(attrName, "Scope") ||
14381430
!strcmp(attrName, "Target") ||
14391431
!strcmp(attrName, "ArgSize") ||

0 commit comments

Comments
 (0)