Skip to content

Commit

Permalink
Add ARL functionality
Browse files Browse the repository at this point in the history
Add ARL functionality
  • Loading branch information
matborzyszkowski authored and igcbot committed Sep 22, 2023
1 parent 6ee5623 commit a195cf6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions IGC/AdaptorCommon/API/igc.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ typedef enum
CODE_PATCH_NO_PullSnapped = ( 0x1 << 0x1 ),
CODE_PATCH_NO_PullCentroid = ( 0x1 << 0x2 ),
CODE_PATCH_NO_ZWDelta = ( 0x1 << 0x3 ),
CODE_PATCH_NO_UNSTABLE_PLATFORM = ( 0x1 << 0x4 ),
} CODE_PATCH_FLAG_t;

// Fastest compilation experimental flags
Expand Down
5 changes: 3 additions & 2 deletions IGC/Compiler/CISACodeGen/EmitVISAPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,12 +781,13 @@ bool EmitPass::runOnFunction(llvm::Function& F)
++I;
}
}
if ((IGC_GET_FLAG_VALUE(CodePatchFilter) & (0x1 << 0x4)) &&
if ((IGC_GET_FLAG_VALUE(CodePatchFilter) & CODE_PATCH_NO_UNSTABLE_PLATFORM) &&
(m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_DG2 ||
m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_ALDERLAKE_P ||
m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_ALDERLAKE_N ||
m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_ALDERLAKE_S ||
m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_METEORLAKE)) {
m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_METEORLAKE ||
m_pCtx->platform.getPlatformInfo().eProductFamily == IGFX_ARROWLAKE)) {
m_encoder->SetIsCodePatchCandidate(false);
}
}
Expand Down
3 changes: 2 additions & 1 deletion IGC/Compiler/CISACodeGen/Platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,8 @@ bool supportAIParameterCombiningWithLODBiasEnabled() const
(m_platformInfo.eProductFamily == IGFX_DG2 && SI_WA_FROM(m_platformInfo.usRevId, ACM_G10_GT_REV_ID_B0)) ||
GFX_IS_DG2_G12_CONFIG(m_platformInfo.usDeviceID) ||
GFX_IS_DG2_G11_CONFIG(m_platformInfo.usDeviceID) ||
m_platformInfo.eProductFamily == IGFX_METEORLAKE;
m_platformInfo.eProductFamily == IGFX_METEORLAKE ||
m_platformInfo.eProductFamily == IGFX_ARROWLAKE;
}

bool useScratchSpaceForOCL() const
Expand Down

0 comments on commit a195cf6

Please sign in to comment.