Skip to content

Commit d682f61

Browse files
authored
[HLSL][TEST] Fix root signature driver test on WSL (#161566)
Running those test with validation enabled, causes emitting an additional intermediary object, which causes the checks to fail, since it will emit 2 `obj`, instead of one `obj` and one `dxo`. This patch changes the test to make sure validation is disabled, making the test consistent across environments.
1 parent 436f9f3 commit d682f61

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/test/Driver/dxc_frs.hlsl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
// RUN: %clang_dxc -T cs_6_0 /Fo %t.dxo /Frs %t.rs.dxo -### %s 2>&1 | FileCheck %s
1+
// RUN: %clang_dxc -Vd -T cs_6_0 /Fo %t.dxo /Frs %t.rs.dxo -### %s 2>&1 | FileCheck %s
22

33
// Test to demonstrate extracting the root signature to the specified
44
// output file with /Frs.
55

66
// CHECK: "{{.*}}llvm-objcopy{{(.exe)?}}" "{{.*}}.obj" "{{.*}}.dxo" "--extract-section=RTS0={{.*}}.rs.dxo"
7-
87
[shader("compute"), RootSignature("")]
98
[numthreads(1,1,1)]
109
void EmptyEntry() {}

clang/test/Driver/dxc_rootsignature_target.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_dxc -E EntryRS -T rootsig_1_1 /Fo %t.dxo -### %s 2>&1 | FileCheck %s --check-prefix=CMDS
1+
// RUN: %clang_dxc -Vd -E EntryRS -T rootsig_1_1 /Fo %t.dxo -### %s 2>&1 | FileCheck %s --check-prefix=CMDS
22

33
// CMDS: "{{.*}}clang{{.*}}" "-cc1"
44
// CMDS-SAME: "-triple" "dxilv1.1-unknown-shadermodel1.1-rootsignature"

0 commit comments

Comments
 (0)