Skip to content

Commit bfd5810

Browse files
jaladreipsigcbot
authored andcommitted
In new InlineRaytracing, Mark the function as having sync rt calls
In new InlineRaytracing, Mark the function as having sync rt calls Turns out this is required for doing correct cache policies and without it we take a big perf hit
1 parent 3aa0140 commit bfd5810

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IGC/AdaptorCommon/RayTracing/NewTraceRayInlineLoweringPass.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,11 +980,13 @@ bool InlineRaytracing::runOnFunction(Function &F) {
980980
LowerGlobalBufferPtrs(F);
981981
LowerStackPtrs(F);
982982

983+
// set relevant metadata
983984
auto *MMD = m_pCGCtx->getModuleMetaData();
984985

985986
MMD->FuncMD[&F].rtInfo.numSyncRTStacks = m_numSlotsUsed;
986987
MMD->rtInfo.numSyncRTStacks =
987988
std::max(MMD->rtInfo.numSyncRTStacks, m_numSlotsUsed);
989+
MMD->FuncMD[&F].hasSyncRTCalls = true;
988990

989991
for (auto &fn : m_Functions) {
990992
IGC_ASSERT_MESSAGE(fn->use_empty(), "Function leaked?");

0 commit comments

Comments
 (0)