From e595743b5aa4f6bd88800cfbcfd6eead3cc3d01b Mon Sep 17 00:00:00 2001 From: "Harsh Aggarwal (NVIDIA)" Date: Fri, 8 Aug 2025 03:13:25 +0530 Subject: Fix intrinsic LoadLocalRootTableConstant for optix (#7949) Due to an older version of spec referred there was an inconsitency v1.29 2/20/2025 - [HitObject LoadLocalRootArgumentsConstant] Latest spec https://microsoft.github.io/DirectX-Specs/d3d/Raytracing.html#hitobject-loadlocalroottableconstant Refer: OptiX backend support for Shader Execution Reordering (SER) features as outlined in issue #6647. - --- tests/cuda/optix-cluster.slang | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/cuda/optix-cluster.slang') diff --git a/tests/cuda/optix-cluster.slang b/tests/cuda/optix-cluster.slang index 151b9c7dd..86e139701 100644 --- a/tests/cuda/optix-cluster.slang +++ b/tests/cuda/optix-cluster.slang @@ -1,4 +1,5 @@ //TEST:SIMPLE(filecheck=CHECK): -target cuda +//TEST:SIMPLE(filecheck=CHECK-PTX): -target ptx -Xnvrtc -I"./external/optix-dev/include/" -entry closestHitShaderA //CHECK: __global__ void __closesthit__closestHitShaderA //CHECK: optixGetClusterId struct RayPayload @@ -9,6 +10,7 @@ struct RayPayload [shader("closesthit")] void closestHitShaderA(inout RayPayload payload, in BuiltInTriangleIntersectionAttributes attr) { + //CHECK-PTX:_optix_get_cluster_id int clusterId = GetClusterID(); float4 color = float4(0, 0, 0, 1); if (clusterId >= 0) -- cgit v1.2.3