Skip to content

Commit 13d4c05

Browse files
committed
review: re-order notes to displayed order
1 parent 6ec1e90 commit 13d4c05

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s -verify
22
// RUN: not %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - %s 2>&1 | FileCheck %s
33

4-
// expected-note@+2 {{overlapping resource range here}}
5-
// expected-error@+1 {{resource ranges b[42;42] and b[42;42] overlap within space = 0 and visibility = All}}
4+
// expected-error@+2 {{resource ranges b[42;42] and b[42;42] overlap within space = 0 and visibility = All}}
5+
// expected-note@+1 {{overlapping resource range here}}
66
[RootSignature("CBV(b42), CBV(b42)")]
77
void bad_root_signature_0() {}
88

9-
// expected-note@+2 {{overlapping resource range here}}
10-
// expected-error@+1 {{resource ranges t[0;0] and t[0;0] overlap within space = 3 and visibility = All}}
9+
// expected-error@+2 {{resource ranges t[0;0] and t[0;0] overlap within space = 3 and visibility = All}}
10+
// expected-note@+1 {{overlapping resource range here}}
1111
[RootSignature("SRV(t0, space = 3), SRV(t0, space = 3)")]
1212
void bad_root_signature_1() {}
1313

14-
// expected-note@+2 {{overlapping resource range here}}
15-
// expected-error@+1 {{resource ranges u[0;0] and u[0;0] overlap within space = 0 and visibility = Pixel}}
14+
// expected-error@+2 {{resource ranges u[0;0] and u[0;0] overlap within space = 0 and visibility = Pixel}}
15+
// expected-note@+1 {{overlapping resource range here}}
1616
[RootSignature("UAV(u0, visibility = SHADER_VISIBILITY_PIXEL), UAV(u0, visibility = SHADER_VISIBILITY_PIXEL)")]
1717
void bad_root_signature_2() {}
1818

19-
// expected-note@+2 {{overlapping resource range here}}
20-
// expected-error@+1 {{resource ranges u[0;0] and u[0;0] overlap within space = 0 and visibility = Pixel}}
19+
// expected-error@+2 {{resource ranges u[0;0] and u[0;0] overlap within space = 0 and visibility = Pixel}}
20+
// expected-note@+1 {{overlapping resource range here}}
2121
[RootSignature("UAV(u0, visibility = SHADER_VISIBILITY_ALL), UAV(u0, visibility = SHADER_VISIBILITY_PIXEL)")]
2222
void bad_root_signature_3() {}
2323

24-
// expected-note@+2 {{overlapping resource range here}}
25-
// expected-error@+1 {{resource ranges u[0;0] and u[0;0] overlap within space = 0 and visibility = Pixel}}
24+
// expected-error@+2 {{resource ranges u[0;0] and u[0;0] overlap within space = 0 and visibility = Pixel}}
25+
// expected-note@+1 {{overlapping resource range here}}
2626
[RootSignature("UAV(u0, visibility = SHADER_VISIBILITY_PIXEL), UAV(u0, visibility = SHADER_VISIBILITY_ALL)")]
2727
void bad_root_signature_4() {}
2828

29-
// expected-note@+2 {{overlapping resource range here}}
30-
// expected-error@+1 {{resource ranges b[0;0] and b[0;0] overlap within space = 0 and visibility = All}}
29+
// expected-error@+2 {{resource ranges b[0;0] and b[0;0] overlap within space = 0 and visibility = All}}
30+
// expected-note@+1 {{overlapping resource range here}}
3131
[RootSignature("RootConstants(num32BitConstants=4, b0), RootConstants(num32BitConstants=2, b0)")]
3232
void bad_root_signature_5() {}
3333

34-
// expected-note@+2 {{overlapping resource range here}}
35-
// expected-error@+1 {{resource ranges s[3;3] and s[3;3] overlap within space = 0 and visibility = All}}
34+
// expected-error@+2 {{resource ranges s[3;3] and s[3;3] overlap within space = 0 and visibility = All}}
35+
// expected-note@+1 {{overlapping resource range here}}
3636
[RootSignature("StaticSampler(s3), StaticSampler(s3)")]
3737
void bad_root_signature_6() {}
3838

39-
// expected-note@+2 {{overlapping resource range here}}
40-
// expected-error@+1 {{resource ranges t[2;5] and t[0;3] overlap within space = 0 and visibility = All}}
39+
// expected-error@+2 {{resource ranges t[2;5] and t[0;3] overlap within space = 0 and visibility = All}}
40+
// expected-note@+1 {{overlapping resource range here}}
4141
[RootSignature("DescriptorTable(SRV(t0, numDescriptors=4), SRV(t2, numDescriptors=4))")]
4242
void bad_root_signature_7() {}
4343

44-
// expected-note@+2 {{overlapping resource range here}}
45-
// expected-error@+1 {{resource ranges u[2;5] and u[0;unbounded) overlap within space = 0 and visibility = Hull}}
44+
// expected-error@+2 {{resource ranges u[2;5] and u[0;unbounded) overlap within space = 0 and visibility = Hull}}
45+
// expected-note@+1 {{overlapping resource range here}}
4646
[RootSignature("DescriptorTable(UAV(u0, numDescriptors=unbounded), visibility = SHADER_VISIBILITY_HULL), DescriptorTable(UAV(u2, numDescriptors=4))")]
4747
void bad_root_signature_8() {}
4848

49-
// expected-note@+2 {{overlapping resource range here}}
50-
// expected-error@+1 {{resource ranges b[0;2] and b[2;2] overlap within space = 0 and visibility = All}}
49+
// expected-error@+2 {{resource ranges b[0;2] and b[2;2] overlap within space = 0 and visibility = All}}
50+
// expected-note@+1 {{overlapping resource range here}}
5151
[RootSignature("RootConstants(num32BitConstants=4, b2), DescriptorTable(CBV(b0, numDescriptors=3))")]
5252
void bad_root_signature_9() {}
5353

54-
// expected-note@+2 {{overlapping resource range here}}
55-
// expected-error@+1 {{resource ranges s[4;unbounded) and s[17;17] overlap within space = 0 and visibility = All}}
54+
// expected-error@+2 {{resource ranges s[4;unbounded) and s[17;17] overlap within space = 0 and visibility = All}}
55+
// expected-note@+1 {{overlapping resource range here}}
5656
[RootSignature("StaticSampler(s17), DescriptorTable(Sampler(s0, numDescriptors=3),Sampler(s4, numDescriptors=unbounded))")]
5757
void bad_root_signature_10() {}
5858

59-
// expected-note@+2 {{overlapping resource range here}}
60-
// expected-error@+1 {{resource ranges b[45;45] and b[4;unbounded) overlap within space = 0 and visibility = Geometry}}
59+
// expected-error@+2 {{resource ranges b[45;45] and b[4;unbounded) overlap within space = 0 and visibility = Geometry}}
60+
// expected-note@+1 {{overlapping resource range here}}
6161
[RootSignature("DescriptorTable(CBV(b4, numDescriptors=unbounded)), CBV(b45, visibility = SHADER_VISIBILITY_GEOMETRY)")]
6262
void bad_root_signature_11() {}
6363

@@ -68,13 +68,13 @@ void bad_root_signature_11() {}
6868
" CBV(b0, numDescriptors = 8), " \
6969
")"
7070

71-
// expected-note@+2 {{overlapping resource range here}}
72-
// expected-error@+1 {{resource ranges b[0;7] and b[1;2] overlap within space = 0 and visibility = All}}
71+
// expected-error@+2 {{resource ranges b[0;7] and b[1;2] overlap within space = 0 and visibility = All}}
72+
// expected-note@+1 {{overlapping resource range here}}
7373
[RootSignature(ReportFirstOverlap)]
7474
void bad_root_signature_12() {}
7575

76-
// expected-note@+2 {{overlapping resource range here}}
77-
// expected-error@+1 {{resource ranges s[2;2] and s[2;2] overlap within space = 0 and visibility = Vertex}}
76+
// expected-error@+2 {{resource ranges s[2;2] and s[2;2] overlap within space = 0 and visibility = Vertex}}
77+
// expected-note@+1 {{overlapping resource range here}}
7878
[RootSignature("StaticSampler(s2, visibility=SHADER_VISIBILITY_ALL), DescriptorTable(Sampler(s2), visibility=SHADER_VISIBILITY_VERTEX)")]
7979
void valid_root_signature_13() {}
8080

@@ -99,7 +99,7 @@ void valid_root_signature_13() {}
9999
// CHECK-NEXT: [[@LINE-15]] | " SRV(t22, numDescriptors = 1), "
100100
// CHECK-NEXT: | ^
101101

102-
// expected-note@+2 {{overlapping resource range here}}
103-
// expected-error@+1 {{resource ranges t[17;23] and t[22;22] overlap within space = 0 and visibility = All}}
102+
// expected-error@+2 {{resource ranges t[17;23] and t[22;22] overlap within space = 0 and visibility = All}}
103+
// expected-note@+1 {{overlapping resource range here}}
104104
[RootSignature(DemoNoteSourceLocations)]
105105
void bad_root_signature_14() {}

0 commit comments

Comments
 (0)