Skip to content

Commit 226f071

Browse files
houjenkoigcbot
authored andcommitted
Disable PingPongTextureOpt in Stage1
This is mainly to address the issue passing between UMD/IGC for PingPongTextureOpt that cause image corruptions for staged compilations.
1 parent 86f1ec0 commit 226f071

File tree

1 file changed

+3
-1
lines changed
  • IGC/AdaptorCommon/API

1 file changed

+3
-1
lines changed

IGC/AdaptorCommon/API/igc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ typedef enum {
9393
#define IsStage1FastestCompile(flag, prev_ctx_ptr) (!IsStage2RestSIMDs(prev_ctx_ptr) && flag == FLAG_CG_STAGE1_FASTEST_COMPILE)
9494
#define IsStage1BestPerf(flag, prev_ctx_ptr) (!IsStage2RestSIMDs(prev_ctx_ptr) && flag == FLAG_CG_STAGE1_BEST_PERF)
9595
#define IsAllSIMDs(flag, prev_ctx_ptr) (!IsStage2RestSIMDs(prev_ctx_ptr) && flag == FLAG_CG_ALL_SIMDS)
96-
#define IsStage1(pCtx) (IsStage1BestPerf(pCtx->m_CgFlag, pCtx->m_StagingCtx) || \
96+
#define IsStagingContextStage1(pCtx) (IsStage1BestPerf(pCtx->m_CgFlag, pCtx->m_StagingCtx) || \
9797
IsStage1FastCompile(pCtx->m_CgFlag, pCtx->m_StagingCtx))
98+
#define IsStage1(pCtx) (IsStagingContextStage1(pCtx) || \
99+
IsStage1FastestCompile(pCtx->m_CgFlag, pCtx->m_StagingCtx))
98100
#define HasSavedIR(pCtx) (pCtx && IsStage2RestSIMDs(pCtx->m_StagingCtx) && \
99101
pCtx->m_StagingCtx->m_savedBitcodeCharArraySize > 0)
100102

0 commit comments

Comments
 (0)