Skip to content

Commit

Permalink
Add non-semantic debug test for include files
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyuanzNV committed Feb 26, 2024
1 parent ada4332 commit 692c0a2
Show file tree
Hide file tree
Showing 20 changed files with 9,715 additions and 9,467 deletions.
314 changes: 158 additions & 156 deletions Test/baseResults/spv.debuginfo.bufferref.glsl.frag.out

Large diffs are not rendered by default.

120 changes: 61 additions & 59 deletions Test/baseResults/spv.debuginfo.const_params.glsl.comp.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
spv.debuginfo.const_params.glsl.comp
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 71
// Id's are bound by 73

Capability Shader
Extension "SPV_KHR_non_semantic_info"
Expand All @@ -12,27 +12,28 @@ spv.debuginfo.const_params.glsl.comp
ExecutionMode 14 LocalSize 1 1 1
2: String ""
8: String "uint"
17: String "float"
35: String "function"
38: String "// OpModuleProcessed auto-map-locations
16: String "spv.debuginfo.const_params.glsl.comp"
18: String "float"
36: String "function"
43: String "// OpModuleProcessed auto-map-locations
// OpModuleProcessed auto-map-bindings
// OpModuleProcessed client vulkan100
// OpModuleProcessed target-env vulkan1.0
// OpModuleProcessed keep-uncalled
// OpModuleProcessed entry-point main
#line 1
"
43: String "f"
49: String "f2"
52: String "f3"
55: String "f4"
57: String "main"
45: String "f"
51: String "f2"
54: String "f3"
57: String "f4"
59: String "main"
Name 14 "main"
Name 33 "function(f1;vf2;vf3;vf4;"
Name 29 "f"
Name 30 "f2"
Name 31 "f3"
Name 32 "f4"
Name 34 "function(f1;vf2;vf3;vf4;"
Name 30 "f"
Name 31 "f2"
Name 32 "f3"
Name 33 "f4"
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
Expand All @@ -42,56 +43,57 @@ spv.debuginfo.const_params.glsl.comp
9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
13: 7(int) Constant 3
6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
16: TypeFloat 32
18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 17 10 13 12
19: TypeVector 16(float) 2
20: 7(int) Constant 2
21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 20
22: TypeVector 16(float) 3
23: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13
24: TypeVector 16(float) 4
25: 7(int) Constant 4
26: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 25
27: TypeFunction 4 16(float) 19(fvec2) 22(fvec3) 24(fvec4)
28: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 18 21 23 26
37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 38
17: TypeFloat 32
19: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 18 10 13 12
20: TypeVector 17(float) 2
21: 7(int) Constant 2
22: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 19 21
23: TypeVector 17(float) 3
24: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 19 13
25: TypeVector 17(float) 4
26: 7(int) Constant 4
27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 19 26
28: TypeFunction 4 17(float) 20(fvec2) 23(fvec3) 25(fvec4)
29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 19 22 24 27
38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 16
39: 7(int) Constant 7
41: 7(int) Constant 1
40: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 41 25 37 20
36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 35 28 37 39 12 40 35 13 39
42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 43 18 37 39 12 36 25 41
45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 49 21 37 39 12 36 25 20
51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 52 23 37 39 12 36 25 13
54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 55 26 37 39 12 36 25 25
59: 7(int) Constant 11
58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 57 6 37 59 12 40 57 13 59
64: 16(float) Constant 0
65: 19(fvec2) ConstantComposite 64 64
66: 22(fvec3) ConstantComposite 64 64 64
67: 24(fvec4) ConstantComposite 64 64 64 64
70: 7(int) Constant 13
42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 43
40: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 41 26 42 21
37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 36 29 38 39 12 40 36 13 39
44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 19 38 39 12 37 26 41
47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 51 22 38 39 12 37 26 21
53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 54 24 38 39 12 37 26 13
56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 57 27 38 39 12 37 26 26
61: 7(int) Constant 11
60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 59 6 38 61 12 40 59 13 61
66: 17(float) Constant 0
67: 20(fvec2) ConstantComposite 66 66
68: 23(fvec3) ConstantComposite 66 66 66
69: 25(fvec4) ConstantComposite 66 66 66 66
72: 7(int) Constant 13
14(main): 4 Function None 5
15: Label
62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 58
63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 59 59 12 12
61: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 58 14(main)
69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 70 70 12 12
68: 4 FunctionCall 33(function(f1;vf2;vf3;vf4;) 64 65 66 67
64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 60
65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 61 61 12 12
63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 60 14(main)
71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 72 72 12 12
70: 4 FunctionCall 34(function(f1;vf2;vf3;vf4;) 66 67 68 69
Return
FunctionEnd
33(function(f1;vf2;vf3;vf4;): 4 Function None 27
29(f): 16(float) FunctionParameter
30(f2): 19(fvec2) FunctionParameter
31(f3): 22(fvec3) FunctionParameter
32(f4): 24(fvec4) FunctionParameter
34: Label
46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 36
47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 37 39 39 12 12
44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 42 29(f) 45
50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 48 30(f2) 45
53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 51 31(f3) 45
56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 54 32(f4) 45
60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 36 33(function(f1;vf2;vf3;vf4;)
34(function(f1;vf2;vf3;vf4;): 4 Function None 28
30(f): 17(float) FunctionParameter
31(f2): 20(fvec2) FunctionParameter
32(f3): 23(fvec3) FunctionParameter
33(f4): 25(fvec4) FunctionParameter
35: Label
48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 37
49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 38 39 39 12 12
46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 44 30(f) 47
52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 50 31(f2) 47
55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 53 32(f3) 47
58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 56 33(f4) 47
62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 37 34(function(f1;vf2;vf3;vf4;)
Return
FunctionEnd
Loading

0 comments on commit 692c0a2

Please sign in to comment.