Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions test/WaveOps/WaveActiveBallot.Wave32.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ RWStructuredBuffer<uint4> Out : register(u1);
[WaveSize(32)]
[numthreads(32, 1, 1)]
void main(uint3 threadID : SV_DispatchThreadID) {
// We expect the first resulting uint's bitmask to be
// We expect the first resulting uint's bitmask to be
// 0xBFFFFFFF
Out[0] = WaveActiveBallot(threadID.x != 30);

// We expect the first resulting uint's bitmask to be
// 0x0000FFFF
// We expect the first resulting uint's bitmask to be
// 0x0000FFFF
Out[1] = WaveActiveBallot(threadID.x < 16);

// We expect the resulting uint4 to be 4 0x00000000's
Expand All @@ -23,7 +23,7 @@ Shaders:
- Stage: Compute
Entry: main
DispatchSize: [1, 1, 1]
Buffers:
Buffers:
- Name: Out
Format: UInt32
Stride: 16
Expand All @@ -38,7 +38,7 @@ Results:
Actual: Out
Expected: ExpectedOut
DescriptorSets:
- Resources:
- Resources:
- Name: Out
Kind: RWStructuredBuffer
DirectXBinding:
Expand All @@ -51,9 +51,6 @@ DescriptorSets:

# REQUIRES: WaveSize_32

# Bug: https://github.com/llvm/offload-test-suite/issues/688
# XFAIL: AMD && DirectX

# RUN: split-file %s %t
# RUN: %dxc_target -T cs_6_6 -Fo %t.o %t/source.hlsl
# RUN: %offloader %t/pipeline.yaml %t.o
11 changes: 4 additions & 7 deletions test/WaveOps/WaveActiveBallot.Wave64.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ RWStructuredBuffer<uint4> Out : register(u1);
[WaveSize(64)]
[numthreads(64, 1, 1)]
void main(uint3 threadID : SV_DispatchThreadID) {
// We expect the first and second resulting uint's bitmask to be
// We expect the first and second resulting uint's bitmask to be
// 0xBFFFFFFF
Out[0] = WaveActiveBallot(threadID.x != 30 && threadID.x != 62);

// We expect the first resulting uint's bitmask to be
// We expect the first resulting uint's bitmask to be
// 0x0000FFFF, and the second to be 0xFFFF0000
Out[1] = WaveActiveBallot(threadID.x < 16 || threadID.x > 47 );

Expand All @@ -23,7 +23,7 @@ Shaders:
- Stage: Compute
Entry: main
DispatchSize: [1, 1, 1]
Buffers:
Buffers:
- Name: Out
Format: UInt32
Stride: 16
Expand All @@ -38,7 +38,7 @@ Results:
Actual: Out
Expected: ExpectedOut
DescriptorSets:
- Resources:
- Resources:
- Name: Out
Kind: RWStructuredBuffer
DirectXBinding:
Expand All @@ -51,9 +51,6 @@ DescriptorSets:

# REQUIRES: WaveSize_64

# Bug: https://github.com/llvm/offload-test-suite/issues/688
# XFAIL: AMD && DirectX

# RUN: split-file %s %t
# RUN: %dxc_target -T cs_6_6 -Fo %t.o %t/source.hlsl
# RUN: %offloader %t/pipeline.yaml %t.o
Loading