summaryrefslogtreecommitdiff
path: root/tests/compute/nonuniformres-nested-rwstructuredbuf.slang
diff options
context:
space:
mode:
authorHarsh Aggarwal (NVIDIA) <haaggarwal@nvidia.com>2025-09-03 21:36:43 +0530
committerGitHub <noreply@github.com>2025-09-03 16:06:43 +0000
commitbf607e2f3fa183e9a2b18c7a98438a05247d6ed3 (patch)
tree1316303f0aec9e3b5b3bb26607a85059408f4f17 /tests/compute/nonuniformres-nested-rwstructuredbuf.slang
parentf5fae010863c0c836a5a80e659673bcd58010dba (diff)
Fix#8085: Batch-9: Enable cuda tests (#8269)
Diffstat (limited to 'tests/compute/nonuniformres-nested-rwstructuredbuf.slang')
-rw-r--r--tests/compute/nonuniformres-nested-rwstructuredbuf.slang7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/compute/nonuniformres-nested-rwstructuredbuf.slang b/tests/compute/nonuniformres-nested-rwstructuredbuf.slang
index f935ce799..f01130240 100644
--- a/tests/compute/nonuniformres-nested-rwstructuredbuf.slang
+++ b/tests/compute/nonuniformres-nested-rwstructuredbuf.slang
@@ -2,6 +2,7 @@
//TEST:SIMPLE(filecheck=CHECK1):-target hlsl -entry main -stage compute
//TEST:SIMPLE(filecheck=CHECK2):-target spirv -entry main -stage compute -emit-spirv-via-glsl
//TEST:SIMPLE(filecheck=CHECK3):-target spirv -entry main -stage compute -emit-spirv-directly
+//TEST:SIMPLE(filecheck=CHECK4):-target cuda -entry main -stage compute -emit-spirv-directly
RWStructuredBuffer<int> buffer[];
@@ -25,9 +26,13 @@ void main(uint3 dispatchThreadID: SV_DispatchThreadID)
// CHECK3: %{{.*}} = OpAccessChain %_ptr_StorageBuffer_int %[[VAR1]]
// CHECK3: %[[VAR2:[a-zA-Z0-9_]+]] = OpAccessChain %_ptr_StorageBuffer_RWStructuredBuffer %buffer %{{.*}}NonUniform
// CHECK3: %{{.*}} = OpAccessChain %_ptr_StorageBuffer_int %[[VAR2]]
+
+ // CHECK4: Array<RWStructuredBuffer<int>> [[BUFFER:buffer[_0-9]*]];
+ // CHECK4: [[GLOBALPARAMS:globalParams[_0-9]*]]->[[BUFFER]][_S{{[0-9]+}}]
+ // CHECK4: [[GLOBALPARAMS]]->[[BUFFER]][int(_S{{[0-9]+}})]
RWStructuredBuffer<int> buffer1 = buffer[NonUniformResourceIndex(NonUniformResourceIndex(NonUniformResourceIndex(dispatchThreadID.x)))];
buffer1[0] = 1;
RWStructuredBuffer<int> buffer2 = buffer[int(NonUniformResourceIndex(uint(float(dispatchThreadID.x))))];
buffer2[0] = 1;
-} \ No newline at end of file
+}