Skip to content

Commit cbb215d

Browse files
committed
self-review: fix testcase to be compliant with version 1.0 as well
1 parent 982f84a commit cbb215d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

clang/test/AST/HLSL/RootSignatures-AST.hlsl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
#define SampleRS "RootFlags( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | " \
1515
"DENY_VERTEX_SHADER_ROOT_ACCESS), " \
16-
"CBV(b0, space = 1, flags = DATA_STATIC), " \
16+
"CBV(b0, space = 1, flags = DATA_VOLATILE), " \
1717
"SRV(t0), " \
1818
"UAV(u0), " \
1919
"DescriptorTable( CBV(b1), " \
2020
"SRV(t1, numDescriptors = 8, " \
21-
" flags = DESCRIPTORS_VOLATILE), " \
21+
" flags = DATA_VOLATILE | DESCRIPTORS_VOLATILE), " \
2222
"UAV(u1, numDescriptors = unbounded, " \
23-
" flags = DESCRIPTORS_VOLATILE)), " \
23+
" flags = DATA_VOLATILE | DESCRIPTORS_VOLATILE)), " \
2424
"DescriptorTable(Sampler(s0, space=1, numDescriptors = 4)), " \
2525
"RootConstants(num32BitConstants=3, b10), " \
2626
"StaticSampler(s1)," \
@@ -34,7 +34,7 @@
3434
// CHECK-SAME: RootElements{
3535
// CHECK-SAME: RootFlags(AllowInputAssemblerInputLayout | DenyVertexShaderRootAccess),
3636
// CHECK-SAME: RootCBV(b0,
37-
// CHECK-SAME: space = 1, visibility = All, flags = DataStatic
37+
// CHECK-SAME: space = 1, visibility = All, flags = DataVolatile
3838
// CHECK-SAME: ),
3939
// CHECK-SAME: RootSRV(t0,
4040
// CHECK-SAME: space = 0, visibility = All,
@@ -50,10 +50,10 @@
5050
// CHECK-V1_1-SAME: flags = DataStaticWhileSetAtExecute
5151
// CHECK-SAME: ),
5252
// CHECK-SAME: SRV(
53-
// CHECK-SAME: t1, numDescriptors = 8, space = 0, offset = DescriptorTableOffsetAppend, flags = DescriptorsVolatile
53+
// CHECK-SAME: t1, numDescriptors = 8, space = 0, offset = DescriptorTableOffsetAppend, flags = DescriptorsVolatile | DataVolatile
5454
// CHECK-SAME: ),
5555
// CHECK-SAME: UAV(
56-
// CHECK-SAME: u1, numDescriptors = unbounded, space = 0, offset = DescriptorTableOffsetAppend, flags = DescriptorsVolatile
56+
// CHECK-SAME: u1, numDescriptors = unbounded, space = 0, offset = DescriptorTableOffsetAppend, flags = DescriptorsVolatile | DataVolatile
5757
// CHECK-SAME: ),
5858
// CHECK-SAME: DescriptorTable(
5959
// CHECK-SAME: numClauses = 3, visibility = All
@@ -92,14 +92,14 @@ void same_rs_main() {}
9292
#define SampleSameRS \
9393
"RootFlags( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT | " \
9494
"DENY_VERTEX_SHADER_ROOT_ACCESS), " \
95-
"CBV(b0, space = 1, flags = DATA_STATIC), " \
95+
"CBV(b0, space = 1, flags = DATA_VOLATILE), " \
9696
"SRV(t0), " \
9797
"UAV(u0), " \
9898
"DescriptorTable( CBV(b1), " \
99-
"SRV(t1, numDescriptors = 8, " \
100-
" flags = DESCRIPTORS_VOLATILE), " \
101-
"UAV(u1, numDescriptors = unbounded, " \
102-
" flags = DESCRIPTORS_VOLATILE)), " \
99+
" SRV(t1, numDescriptors = 8, " \
100+
" flags = DATA_VOLATILE | DESCRIPTORS_VOLATILE), " \
101+
" UAV(u1, numDescriptors = unbounded, " \
102+
" flags = DATA_VOLATILE | DESCRIPTORS_VOLATILE)), " \
103103
"DescriptorTable(Sampler(s0, space=1, numDescriptors = 4)), " \
104104
"RootConstants(num32BitConstants=3, b10), " \
105105
"StaticSampler(s1)," \

0 commit comments

Comments
 (0)