From e3701b24ed016429fb3fa697be77058a5d3da24e Mon Sep 17 00:00:00 2001 From: "Jarosz, Piotr" Date: Thu, 28 Nov 2024 12:32:29 +0000 Subject: [PATCH] Minor refactor Minor refactor --- IGC/AdaptorCommon/RayTracing/RTBuilder.cpp | 1 + IGC/AdaptorCommon/RayTracing/TraceRayInlineLoweringPass.cpp | 2 +- IGC/Compiler/CISACodeGen/EmitVISAPass.cpp | 3 --- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/IGC/AdaptorCommon/RayTracing/RTBuilder.cpp b/IGC/AdaptorCommon/RayTracing/RTBuilder.cpp index 634d048d8eff..a5853f247444 100644 --- a/IGC/AdaptorCommon/RayTracing/RTBuilder.cpp +++ b/IGC/AdaptorCommon/RayTracing/RTBuilder.cpp @@ -1932,6 +1932,7 @@ Value* RTBuilder::syncStackToShadowMemory( Value* ProceedReturnVal, Value* ShadowMemRTCtrlPtr) { + switch (getMemoryStyle()) { #define STYLE(X) \ diff --git a/IGC/AdaptorCommon/RayTracing/TraceRayInlineLoweringPass.cpp b/IGC/AdaptorCommon/RayTracing/TraceRayInlineLoweringPass.cpp index faf411920861..16c4fab7e435 100644 --- a/IGC/AdaptorCommon/RayTracing/TraceRayInlineLoweringPass.cpp +++ b/IGC/AdaptorCommon/RayTracing/TraceRayInlineLoweringPass.cpp @@ -116,7 +116,7 @@ class TraceRayInlineLoweringPass : public FunctionPass char TraceRayInlineLoweringPass::ID = 0; // Register pass to igc-opt -#define PASS_FLAG "tracerayinline-lowering" +#define PASS_FLAG "igc-tracerayinline-lowering-pass" #define PASS_DESCRIPTION "Lower tracerayinline intrinsics" #define PASS_CFG_ONLY false #define PASS_ANALYSIS false diff --git a/IGC/Compiler/CISACodeGen/EmitVISAPass.cpp b/IGC/Compiler/CISACodeGen/EmitVISAPass.cpp index d1d0d81e7e25..0be7f1ff1973 100644 --- a/IGC/Compiler/CISACodeGen/EmitVISAPass.cpp +++ b/IGC/Compiler/CISACodeGen/EmitVISAPass.cpp @@ -24157,7 +24157,6 @@ void EmitPass::emitTraceRay(TraceRayIntrinsic* I, bool RayQueryEnable) (m_currShader->m_SIMDSize == SIMDMode::SIMD32 ) ? 2 : 1; - for (uint32_t Cnt = 0; Cnt < NumSend; Cnt++) { // 'payload' contains bvhLevel, traceRayCtrl, and stackID as per @@ -24297,7 +24296,6 @@ void EmitPass::emitTraceRay(TraceRayIntrinsic* I, bool RayQueryEnable) } } - m_encoder->Sends( Dst, header, @@ -24308,7 +24306,6 @@ void EmitPass::emitTraceRay(TraceRayIntrinsic* I, bool RayQueryEnable) false); m_encoder->Push(); - } // Insert a software fence after the send.rta so no IO operations get