Skip to content

Commit f4ba71c

Browse files
authored
Enable most of the vulkan tests under clang (#185)
This removes `UNSUPPORTED: Clang-Vulkan` from most of the tests that had it. These tests pass with top-of-tree LLVM. There are a couple of places we need to keep unsupported tests for now: - Tests that use -fvk-use-scalar-layout flag - Tests that use the vk::binding attribute - Tests that set OpCapability Kernel
1 parent 0b81f0b commit f4ba71c

File tree

15 files changed

+12
-16
lines changed

15 files changed

+12
-16
lines changed

test/Basic/TestFloat32Pipeline.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ DescriptorSets:
3939
...
4040
#--- end
4141

42+
# https://github.com/llvm/llvm-project/issues/140739
4243
# UNSUPPORTED: Clang-Vulkan
44+
4345
# RUN: split-file %s %t
4446
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
4547
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Basic/TestPipeline.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ DescriptorSets:
4040
...
4141
#--- end
4242

43-
# UNSUPPORTED: Clang-Vulkan
4443
# RUN: split-file %s %t
4544
# RUN: %dxc_target -T cs_6_0 -E CSMain -Fo %t.o %t/source.hlsl
4645
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Basic/idiv-edges.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ DescriptorSets:
5656
...
5757
#--- end
5858

59-
# UNSUPPORTED: Clang-Vulkan
6059
# RUN: split-file %s %t
6160
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
6261
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Basic/simple.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ DescriptorSets:
4141
...
4242
#--- end
4343

44+
# https://github.com/llvm/llvm-project/issues/140739
4445
# UNSUPPORTED: Clang-Vulkan
46+
4547
# RUN: split-file %s %t
4648
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/simple.hlsl
4749
# RUN: %offloader %t/simple.yaml %t.o | FileCheck %s

test/Feature/HLSLLib/length.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ DescriptorSets:
4646
...
4747
#--- end
4848

49-
# UNSUPPORTED: Clang-Vulkan
5049
# RUN: split-file %s %t
5150
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl
5251
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Feature/HLSLLib/saturate.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ DescriptorSets:
4646
...
4747
#--- end
4848

49-
# UNSUPPORTED: Clang-Vulkan
5049
# RUN: split-file %s %t
5150
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl
5251
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Feature/StructuredBuffer/layout.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ DescriptorSets:
8787
...
8888
#--- end
8989

90+
# clang-dxc doesn't support the -fvk-use-scalar-layout flag yet
9091
# UNSUPPORTED: Clang-Vulkan
9192

9293
# RUN: split-file %s %t

test/Feature/StructuredBuffer/srv.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ DescriptorSets:
4444
...
4545
#--- end
4646

47+
# https://github.com/llvm/llvm-project/issues/140739
4748
# UNSUPPORTED: Clang-Vulkan
49+
4850
# RUN: split-file %s %t
4951
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
5052
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Feature/StructuredBuffer/stride.test

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct S {
66
StructuredBuffer<float4> In : register(t0);
77
RWStructuredBuffer<S> Out : register(u1);
88

9-
[numthreads(1,1,2)]
9+
[numthreads(2,1,1)]
1010
void main(uint GI : SV_GroupIndex) {
1111
Out[GI].i = In[GI];
1212
}
@@ -44,8 +44,6 @@ DescriptorSets:
4444
...
4545
#--- end
4646

47-
# UNSUPPORTED: Clang-Vulkan
48-
4947
# RUN: split-file %s %t
5048
# RUN: %dxc_target -T cs_6_0 -Fo %t.o %t/source.hlsl
5149
# RUN: %offloader %t/pipeline.yaml %t.o | FileCheck %s

test/Tools/Offloader/BufferExact-error.test

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ DescriptorSets:
4343
...
4444
#--- end
4545

46-
# UNSUPPORTED: Clang-Vulkan
4746
# RUN: split-file %s %t
4847
# RUN: %dxc_target -T cs_6_5 -Fo %t.o %t/source.hlsl
4948
# RUN: not %offloader %t/pipeline.yaml %t.o 2>&1 | FileCheck %s
@@ -70,4 +69,3 @@ DescriptorSets:
7069
# CHECK: Height: 0
7170
# CHECK: Width: 0
7271
# CHECK: Depth: 0
73-

0 commit comments

Comments
 (0)