Skip to content

Commit fa65306

Browse files
krystian-andrzejewskiigcbot
authored andcommitted
Set vISA_autoLoadLocalID during overriding visaasm files
This change is to set vISA_autoLoadLocalID to the expected value. This enables to override visaasm in some scenarios without unexpected perturbations.
1 parent 5775c7c commit fa65306

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6361,6 +6361,19 @@ namespace IGC
63616361
// Use the same build options as before, except that we enable vISA
63626362
// verifier to catch potential errors in user inline assembly
63636363
SetBuilderOptions(vAsmTextBuilder);
6364+
6365+
switch (context->type)
6366+
{
6367+
case ShaderType::OPENCL_SHADER:
6368+
{
6369+
OpenCLProgramContext* const csCtx = static_cast<OpenCLProgramContext*>(context);
6370+
vAsmTextBuilder->SetOption(vISA_autoLoadLocalID, csCtx->m_walkOrderStruct.m_enableHWGenerateLID);
6371+
break;
6372+
}
6373+
default:
6374+
break;
6375+
}
6376+
63646377
vAsmTextBuilder->SetOption(vISA_NoVerifyvISA, false);
63656378

63666379
bool vISAAsmParseError = false;

0 commit comments

Comments
 (0)