Skip to content

Commit f89b859

Browse files
authored
[HLSL][SPIR-V] Fix clang driver lang target test (#70330)
This test has been failing since the SPIR-V backend started failing explicitly on unsupported shader types. Switched this test to a compute shader since it is currently the only type supported.
1 parent 56dab2c commit f89b859

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Driver/hlsl-lang-targets-spirv.hlsl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
// Supported targets
44
//
5-
// RUN: %clang -target dxil-unknown-shadermodel6.2-pixel %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-VALID %s
6-
// RUN: %clang -target spirv-unknown-shadermodel6.2-library %s -S -o /dev/null 2>&1 | FileCheck --check-prefix=CHECK-VALID %s
5+
// RUN: %clang -target dxil-unknown-shadermodel6.2-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-empty --check-prefix=CHECK-VALID %s
6+
// RUN: %clang -target spirv-unknown-shadermodel6.2-compute %s -S -o /dev/null 2>&1 | FileCheck --allow-empty --check-prefix=CHECK-VALID %s
77

88
// Empty shader model
99
//
@@ -27,5 +27,5 @@
2727
// CHECK-NO-ENV: error: shader stage is required in target '{{.*}}' for HLSL code generation
2828
// CHECK-BAD-ENV: error: shader stage '{{.*}}' in target '{{.*}}' is invalid for HLSL code generation
2929

30-
[shader("pixel")]
30+
[shader("compute"), numthreads(1,1,1)]
3131
void main() {}

0 commit comments

Comments
 (0)