Skip to content

Commit 28fb5ea

Browse files
committed
add 128 thread test
1 parent c30eb8a commit 28fb5ea

File tree

1 file changed

+130
-7
lines changed

1 file changed

+130
-7
lines changed

test/WaveOps/WaveReadLaneFirst.128Threads.test

Lines changed: 130 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ RWStructuredBuffer<int4> Out4 : register(u4); // test int4
1111
RWStructuredBuffer<int4> Out5 : register(u5); // constant folding
1212
StructuredBuffer<MaskStruct> Masks : register(t6);
1313

14-
14+
[WaveSize(32)]
1515
[numthreads(NUM_THREADS,1,1)]
1616
void main(uint3 tid : SV_GroupThreadID)
1717
{
@@ -86,11 +86,134 @@ Buffers:
8686
- Name: ExpectedOut4
8787
Format: Int32
8888
Stride: 16
89-
Data: [ 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0,
90-
0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0,
91-
0,0,0,0, 1,2,3,4, 1,2,3,4, 0,0,0,0, 0,0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0, 0,
121+
0, 0, 0, 0,
122+
33, 34, 35, 36,
123+
33, 34, 35, 36,
124+
0, 0, 0, 0,
125+
0, 0, 0, 0,
126+
33, 34, 35, 36,
127+
33, 34, 35, 36,
128+
0, 0, 0, 0,
129+
0, 0, 0, 0,
130+
33, 34, 35, 36,
131+
33, 34, 35, 36,
132+
0, 0, 0, 0,
133+
0, 0, 0, 0,
134+
33, 34, 35, 36,
135+
33, 34, 35, 36,
136+
0, 0, 0, 0,
137+
0, 0, 0, 0,
138+
33, 34, 35, 36,
139+
33, 34, 35, 36,
140+
0, 0, 0, 0,
141+
0, 0, 0, 0,
142+
33, 34, 35, 36,
143+
33, 34, 35, 36,
144+
0, 0, 0, 0,
145+
0, 0, 0, 0,
146+
33, 34, 35, 36,
147+
33, 34, 35, 36,
148+
0, 0, 0, 0,
149+
0, 0, 0, 0,
150+
33, 34, 35, 36,
151+
33, 34, 35, 36,
152+
0, 0, 0, 0,
153+
0, 0, 0, 0,
154+
65, 66, 67, 68,
155+
65, 66, 67, 68,
156+
0, 0, 0, 0,
157+
0, 0, 0, 0,
158+
65, 66, 67, 68,
159+
65, 66, 67, 68,
160+
0, 0, 0, 0,
161+
0, 0, 0, 0,
162+
65, 66, 67, 68,
163+
65, 66, 67, 68,
164+
0, 0, 0, 0,
165+
0, 0, 0, 0,
166+
65, 66, 67, 68,
167+
65, 66, 67, 68,
168+
0, 0, 0, 0,
169+
0, 0, 0, 0,
170+
65, 66, 67, 68,
171+
65, 66, 67, 68,
172+
0, 0, 0, 0,
173+
0, 0, 0, 0,
174+
65, 66, 67, 68,
175+
65, 66, 67, 68,
176+
0, 0, 0, 0,
177+
0, 0, 0, 0,
178+
65, 66, 67, 68,
179+
65, 66, 67, 68,
180+
0, 0, 0, 0,
181+
0, 0, 0, 0,
182+
65, 66, 67, 68,
183+
65, 66, 67, 68,
184+
0, 0, 0, 0,
185+
0, 0, 0, 0,
186+
97, 98, 99, 100,
187+
97, 98, 99, 100,
188+
0, 0, 0, 0,
189+
0, 0, 0, 0,
190+
97, 98, 99, 100,
191+
97, 98, 99, 100,
192+
0, 0, 0, 0,
193+
0, 0, 0, 0,
194+
97, 98, 99, 100,
195+
97, 98, 99, 100,
196+
0, 0, 0, 0,
197+
0, 0, 0, 0,
198+
97, 98, 99, 100,
199+
97, 98, 99, 100,
200+
0, 0, 0, 0,
201+
0, 0, 0, 0,
202+
97, 98, 99, 100,
203+
97, 98, 99, 100,
204+
0, 0, 0, 0,
205+
0, 0, 0, 0,
206+
97, 98, 99, 100,
207+
97, 98, 99, 100,
208+
0, 0, 0, 0,
209+
0, 0, 0, 0,
210+
97, 98, 99, 100,
211+
97, 98, 99, 100,
212+
0, 0, 0, 0,
213+
0, 0, 0, 0,
214+
97, 98, 99, 100,
215+
97, 98, 99, 100,
216+
0, 0, 0, 0 ]
94217
- Name: ExpectedOut5
95218
Format: Int32
96219
Stride: 8
@@ -145,5 +268,5 @@ DescriptorSets:
145268
# XFAIL: Metal
146269

147270
# RUN: split-file %s %t
148-
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl
271+
# RUN: %dxc_target -T cs_6_6 -Fo %t.o %t/source.hlsl
149272
# RUN: %offloader %t/pipeline.yaml %t.o

0 commit comments

Comments
 (0)