|
1 | 1 | // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -ast-dump \
|
2 |
| -// RUN: -disable-llvm-passes -o - %s | FileCheck %s |
| 2 | +// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-V1_1 |
3 | 3 | // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -ast-dump \
|
4 | 4 | // RUN: -fdx-rootsignature-version=rootsig_1_0 \
|
5 |
| -// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefix=CHECK-V1_0 |
| 5 | +// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-V1_0 |
6 | 6 | // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-library -ast-dump \
|
7 | 7 | // RUN: -fdx-rootsignature-version=rootsig_1_1 \
|
8 |
| -// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefix=CHECK-V1_1 |
| 8 | +// RUN: -disable-llvm-passes -o - %s | FileCheck %s --check-prefixes=CHECK,CHECK-V1_1 |
9 | 9 |
|
10 | 10 | // This test ensures that the sample root signature is parsed without error and
|
11 | 11 | // the Attr AST Node is created succesfully. If an invalid root signature was
|
|
37 | 37 | // CHECK-SAME: space = 1, visibility = All, flags = DataStatic
|
38 | 38 | // CHECK-SAME: ),
|
39 | 39 | // CHECK-SAME: RootSRV(t0,
|
40 |
| -// CHECK-SAME: space = 0, visibility = All, flags = DataStaticWhileSetAtExecute |
| 40 | +// CHECK-SAME: space = 0, visibility = All, |
| 41 | +// CHECK-V1_0-SAME: flags = DataVolatile |
| 42 | +// CHECK-V1_1-SAME: flags = DataStaticWhileSetAtExecute |
41 | 43 | // CHECK-SAME: ),
|
42 | 44 | // CHECK-SAME: RootUAV(
|
43 | 45 | // CHECK-SAME: u0, space = 0, visibility = All, flags = DataVolatile
|
44 | 46 | // CHECK-SAME: ),
|
45 | 47 | // CHECK-SAME: CBV(
|
46 |
| -// CHECK-SAME: b1, numDescriptors = 1, space = 0, offset = DescriptorTableOffsetAppend, flags = DataStaticWhileSetAtExecute |
| 48 | +// CHECK-SAME: b1, numDescriptors = 1, space = 0, offset = DescriptorTableOffsetAppend, |
| 49 | +// CHECK-V1_0-SAME: flags = DescriptorsVolatile | DataVolatile |
| 50 | +// CHECK-V1_1-SAME: flags = DataStaticWhileSetAtExecute |
47 | 51 | // CHECK-SAME: ),
|
48 | 52 | // CHECK-SAME: SRV(
|
49 | 53 | // CHECK-SAME: t1, numDescriptors = 8, space = 0, offset = DescriptorTableOffsetAppend, flags = DescriptorsVolatile
|
|
55 | 59 | // CHECK-SAME: numClauses = 3, visibility = All
|
56 | 60 | // CHECK-SAME: ),
|
57 | 61 | // CHECK-SAME: Sampler(
|
58 |
| -// CHECK-SAME: s0, numDescriptors = 4, space = 1, offset = DescriptorTableOffsetAppend, flags = None |
| 62 | +// CHECK-SAME: s0, numDescriptors = 4, space = 1, offset = DescriptorTableOffsetAppend, |
| 63 | +// CHECK-V1_0-SAME: flags = DescriptorsVolatile |
| 64 | +// CHECK-V1_1-SAME: flags = None |
59 | 65 | // CHECK-SAME: ),
|
60 | 66 | // CHECK-SAME: DescriptorTable(
|
61 | 67 | // CHECK-SAME: numClauses = 1, visibility = All
|
@@ -112,9 +118,13 @@ void same_rs_string_main() {}
|
112 | 118 | // a seperate decl and identifier to reference
|
113 | 119 |
|
114 | 120 | // CHECK: -HLSLRootSignatureDecl 0x{{.*}} {{.*}} implicit [[DIFF_RS_DECL:__hlsl_rootsig_decl_\d*]]
|
| 121 | +// CHECK-V1_0: version: 1.0, |
| 122 | +// CHECK-V1_1: version: 1.1, |
115 | 123 | // CHECK-SAME: RootElements{
|
116 |
| -// CHECK-SAME: Sampler(s0, numDescriptors = 4, space = 1, |
117 |
| -// CHECK-SAME: offset = DescriptorTableOffsetAppend, flags = None), |
| 124 | +// CHECK-SAME: Sampler(s0, numDescriptors = 4, space = 1, offset = DescriptorTableOffsetAppend, |
| 125 | +// CHECK-V1_0-SAME: flags = DescriptorsVolatile |
| 126 | +// CHECK-V1_1-SAME: flags = None |
| 127 | +// CHECK-SAME: ), |
118 | 128 | // CHECK-SAME: DescriptorTable(numClauses = 1, visibility = All)
|
119 | 129 | // CHECK-SAME: }
|
120 | 130 |
|
|
0 commit comments