From 28f92350c9c1e87454fb38d2990ef05d3f5a7049 Mon Sep 17 00:00:00 2001 From: Junda Liu Date: Fri, 3 Nov 2023 16:22:32 +0800 Subject: [PATCH] Pass ray flags to intersection shader When handling OpReportIntersectionKHR(lgc.rt.report.hit), we need the ray flags to determine whether to terminate on first hit. --- llpc/lower/llpcSpirvLowerRayTracing.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llpc/lower/llpcSpirvLowerRayTracing.cpp b/llpc/lower/llpcSpirvLowerRayTracing.cpp index bff0dcfa75..d0cb0a1782 100644 --- a/llpc/lower/llpcSpirvLowerRayTracing.cpp +++ b/llpc/lower/llpcSpirvLowerRayTracing.cpp @@ -1990,6 +1990,7 @@ SmallSet SpirvLowerRayTracing::getShaderExtraInputParams(ShaderStag params.insert(TraceParam::TCurrent); params.insert(TraceParam::Kind); params.insert(TraceParam::DuplicateAnyHit); + params.insert(TraceParam::RayFlags); break; default: break;