Skip to content

Commit e870408

Browse files
jaladreipsigcbot
authored andcommitted
Enable stateful rt stack for sync raytracing
Enable stateful rt stack for sync raytracing
1 parent 2b93cd8 commit e870408

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

IGC/AdaptorCommon/RayTracing/RayTracingInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void setupRegionBTIs(CodeGenContext* pContext)
103103
rtInfo.SWStackSurfaceStateOffset = BaseOffset++;
104104
}
105105

106-
if (IGC_IS_FLAG_DISABLED(DisableStatefulRTSyncStackAccess4RTShader))
106+
if (IGC_IS_FLAG_DISABLED(DisableStatefulRTSyncStackAccess4RTShader) && pContext->m_DriverInfo.allowStatefulStackForSyncRaytracing())
107107
{
108108
rtInfo.RTSyncStackAddrspace = getAddrspace();
109109
rtInfo.RTSyncStackSurfaceStateOffset = BaseOffset++;

IGC/Compiler/CISACodeGen/DriverInfo.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ namespace IGC
392392
virtual bool supportsVRT() const { return true; }
393393

394394
virtual bool supportsUniformPrivateMemorySpace() const { return false; }
395+
396+
virtual bool allowStatefulStackForSyncRaytracing() const { return false; }
395397
protected:
396398
bool autoGRFSelection = false;
397399
};

IGC/common/igc_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ DECLARE_IGC_GROUP("Raytracing Options")
975975
DECLARE_IGC_REGKEY(bool, DisableStatefulRTSyncStackAccess, true, "do stateless rather than stateful accesses to the HW portion of the sync stack", true)
976976
DECLARE_IGC_REGKEY(bool, DisableStatefulSWHotZoneAccess, false, "do stateless rather than stateful accesses to the SW HotZone", true)
977977
DECLARE_IGC_REGKEY(bool, DisableStatefulSWStackAccess, false, "do stateless rather than stateful accesses to the SW Stack", true)
978-
DECLARE_IGC_REGKEY(bool, DisableStatefulRTSyncStackAccess4RTShader, true, "do stateless rather than stateful accesses to the HW portion of the sync stack. RT Shader only.", true)
978+
DECLARE_IGC_REGKEY(bool, DisableStatefulRTSyncStackAccess4RTShader, false, "do stateless rather than stateful accesses to the HW portion of the sync stack. RT Shader only.", true)
979979
DECLARE_IGC_REGKEY(bool, DisableStatefulRTSyncStackAccess4nonRTShader, true, "do stateless rather than stateful accesses to the HW portion of the sync stack. nonRT Shader only.", true)
980980
DECLARE_IGC_REGKEY(bool, DisableRTBindlessAccess, false, "do bindful rather than bindless accesses to raytracing memory", true)
981981
DECLARE_IGC_REGKEY(bool, DisableRTStackOpts, false, "Disable some optimizations that minimize reads/writes to the RTStack", true)

0 commit comments

Comments
 (0)