Skip to content

Commit b24837a

Browse files
committed
Add NURI where it was missing
This hopefully will fix issues on AMD and Intel devices. Fixes #376, Fixes #337
1 parent 9c27399 commit b24837a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/Feature/StructuredBuffer/inc_counter_array.test

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ RWStructuredBuffer<int> Out[4] : register(u0);
88
[numthreads(4,1,1)]
99
void main(uint GI : SV_GroupIndex) {
1010
for (int i = 0; i < GI; i++)
11-
Out[GI].IncrementCounter();
12-
13-
Out[GI][0] = Out[GI].IncrementCounter();
11+
Out[NonUniformResourceIndex(GI)].IncrementCounter();
12+
13+
Out[NonUniformResourceIndex(GI)][0] = Out[NonUniformResourceIndex(GI)].IncrementCounter();
1414
}
1515

1616
//--- pipeline.yaml
@@ -48,10 +48,6 @@ DescriptorSets:
4848
# Unimplemented https://github.com/llvm/offload-test-suite/issues/305
4949
# XFAIL: Metal
5050

51-
# Intel has an issue with counters in resource arrays
52-
# Bug https://github.com/llvm/offload-test-suite/issues/376
53-
# XFAIL: Intel
54-
5551
# RUN: split-file %s %t
5652
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
5753
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s %if DirectX %{ --check-prefixes=CHECK,DX-CHECK %}

0 commit comments

Comments
 (0)