Skip to content

Commit 1174f6b

Browse files
Dimus77igcbot
authored andcommitted
Changes in code.
1 parent f728167 commit 1174f6b

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

IGC/AdaptorOCL/dllInterfaceCompute.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,7 @@ bool TranslateBuild(
11701170
if( IGC_GET_FLAG_VALUE( ForceFastestSIMD ) )
11711171
{
11721172
oclContext.m_retryManager.AdvanceState();
1173+
oclContext.m_retryManager.SetFirstStateId(oclContext.m_retryManager.GetRetryId());
11731174
}
11741175
// Optimize the IR. This happens once for each program, not per-kernel.
11751176
IGC::OptimizeIR(&oclContext);

IGC/Compiler/CodeGenContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ namespace IGC
9292
IGC_ASSERT(stateId < getStateCnt());
9393
return RetryTable[stateId].allowLargeURBWrite;
9494
}
95+
void RetryManager::SetFirstStateId(int id) {
96+
firstStateId = id;
97+
}
9598
bool RetryManager::IsFirstTry() {
9699
return (stateId == firstStateId);
97100
}

IGC/Compiler/CodeGenPublic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ namespace IGC
745745
bool AllowCodeSinking();
746746
bool AllowSimd32Slicing();
747747
bool AllowLargeURBWrite();
748+
void SetFirstStateId(int id);
748749
bool IsFirstTry();
749750
bool IsLastTry();
750751
unsigned GetRetryId() const;

0 commit comments

Comments
 (0)