Skip to content

Commit eaff111

Browse files
zuban32sys_zuul
authored andcommitted
Fix relocation and symbol table generation for SIMD1 mode
Change-Id: I3201bbd933f79e2085ee762e4358a40566903f33
1 parent 218b8c7 commit eaff111

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

IGC/AdaptorOCL/OCL/sp/sp_g8.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,7 +2186,8 @@ RETVAL CGen8OpenCLStateProcessor::CreatePatchList(
21862186
size = program->simd16.m_funcSymbolTableSize;
21872187
entries = program->simd16.m_funcSymbolTableEntries;
21882188
}
2189-
else if (annotations.m_executionEnivronment.CompiledSIMDSize == 32)
2189+
else if (annotations.m_executionEnivronment.CompiledSIMDSize == 32 ||
2190+
annotations.m_executionEnivronment.CompiledSIMDSize == 1)
21902191
{
21912192
buffer = program->simd32.m_funcSymbolTable;
21922193
size = program->simd32.m_funcSymbolTableSize;
@@ -2240,7 +2241,10 @@ RETVAL CGen8OpenCLStateProcessor::CreatePatchList(
22402241
size = program->simd16.m_funcRelocationTableSize;
22412242
entries = program->simd16.m_funcRelocationTableEntries;
22422243
}
2243-
else if (annotations.m_executionEnivronment.CompiledSIMDSize == 32)
2244+
// CM kernels are dispatched with CompiledSIMDSize == 1, this is just a contract
2245+
// between igcmc and patch token generator, shouldn't break existing scenarios for IGC
2246+
else if (annotations.m_executionEnivronment.CompiledSIMDSize == 32 ||
2247+
annotations.m_executionEnivronment.CompiledSIMDSize == 1)
22442248
{
22452249
buffer = program->simd32.m_funcRelocationTable;
22462250
size = program->simd32.m_funcRelocationTableSize;

0 commit comments

Comments
 (0)