Emit DebugTypePointer when non-semantic debug info is enabled

This commit is contained in:
Sajjad Mirza 2023-12-28 08:00:37 -08:00 committed by GitHub
parent 89824a83b7
commit e17ecb0e80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 9174 additions and 8925 deletions

View file

@ -1,7 +1,7 @@
spv.debuginfo.bufferref.glsl.frag
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 132
// Id's are bound by 143
Capability Shader
Capability PhysicalStorageBufferAddressesEXT
@ -11,7 +11,7 @@ spv.debuginfo.bufferref.glsl.frag
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel PhysicalStorageBuffer64EXT GLSL450
EntryPoint Fragment 14 "main" 70 123
EntryPoint Fragment 14 "main" 75 134
ExecutionMode 14 OriginUpperLeft
1: String ""
8: String "uint"
@ -28,42 +28,42 @@ spv.debuginfo.bufferref.glsl.frag
34: String "float"
40: String "data"
44: String "MeshVertexPositions"
48: String "meshData"
60: String "PerPass_meshes"
64: String "perPass_meshes"
66: String "int"
72: String "tri_idx0"
87: String "vertex_pos0"
125: String "out_fragColor"
50: String "meshData"
62: String "PerPass_meshes"
68: String "perPass_meshes"
70: String "int"
77: String "tri_idx0"
95: String "vertex_pos0"
136: String "out_fragColor"
SourceExtension "GL_EXT_buffer_reference"
Name 14 "main"
Name 30 "Mesh"
MemberName 30(Mesh) 0 "positions"
Name 38 "MeshVertexPositions"
MemberName 38(MeshVertexPositions) 0 "data"
Name 46 "meshData"
Name 51 "Mesh"
MemberName 51(Mesh) 0 "positions"
Name 55 "PerPass_meshes"
MemberName 55(PerPass_meshes) 0 "data"
Name 62 "perPass_meshes"
Name 70 "tri_idx0"
Name 85 "vertex_pos0"
Name 123 "out_fragColor"
Name 48 "meshData"
Name 53 "Mesh"
MemberName 53(Mesh) 0 "positions"
Name 57 "PerPass_meshes"
MemberName 57(PerPass_meshes) 0 "data"
Name 66 "perPass_meshes"
Name 75 "tri_idx0"
Name 93 "vertex_pos0"
Name 134 "out_fragColor"
Decorate 36 ArrayStride 4
MemberDecorate 38(MeshVertexPositions) 0 Offset 0
Decorate 38(MeshVertexPositions) Block
MemberDecorate 51(Mesh) 0 Offset 0
Decorate 53 ArrayStride 8
MemberDecorate 55(PerPass_meshes) 0 NonWritable
MemberDecorate 55(PerPass_meshes) 0 Offset 0
Decorate 55(PerPass_meshes) Block
Decorate 62(perPass_meshes) DescriptorSet 0
Decorate 62(perPass_meshes) Binding 0
Decorate 70(tri_idx0) Flat
Decorate 70(tri_idx0) Location 0
Decorate 123(out_fragColor) Location 0
Decorate 46(meshData) DecorationAliasedPointerEXT
MemberDecorate 53(Mesh) 0 Offset 0
Decorate 55 ArrayStride 8
MemberDecorate 57(PerPass_meshes) 0 NonWritable
MemberDecorate 57(PerPass_meshes) 0 Offset 0
Decorate 57(PerPass_meshes) Block
Decorate 66(perPass_meshes) DescriptorSet 0
Decorate 66(perPass_meshes) Binding 0
Decorate 75(tri_idx0) Flat
Decorate 75(tri_idx0) Location 0
Decorate 134(out_fragColor) Location 0
Decorate 48(meshData) DecorationAliasedPointerEXT
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -95,93 +95,104 @@ spv.debuginfo.bufferref.glsl.frag
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 44 22 18 28 12 21 44 12 13 39
29: TypePointer PhysicalStorageBufferEXT 38(MeshVertexPositions)
45: TypePointer Function 30(Mesh)
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 48 31 18 28 12 17 23
50: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
51(Mesh): TypeStruct 29(ptr)
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 28 12 21 32 12 13
53: TypeRuntimeArray 51(Mesh)
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 52 12
55(PerPass_meshes): TypeStruct 53
57: 7(int) Constant 13
58: 7(int) Constant 8
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 40 54 18 57 58 12 12 13
59: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 22 18 28 12 21 60 12 13 56
61: TypePointer StorageBuffer 55(PerPass_meshes)
62(perPass_meshes): 61(ptr) Variable StorageBuffer
63: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 64 59 18 28 12 21 64 62(perPass_meshes) 58
65: TypeInt 32 1
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 66 10 23 12
68: 65(int) Constant 0
69: TypePointer Input 7(int)
70(tri_idx0): 69(ptr) Variable Input
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 72 9 18 28 12 21 72 70(tri_idx0) 58
74: TypePointer StorageBuffer 51(Mesh)
78: TypePointer Function 29(ptr)
81: 7(int) Constant 23
82: TypeVector 33(float) 3
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 13
84: TypePointer Function 82(fvec3)
86: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 83 18 81 12 17 23
90: 7(int) Constant 25
96: TypePointer PhysicalStorageBufferEXT 33(float)
100: 7(int) Constant 24
119: 7(int) Constant 27
120: TypeVector 33(float) 4
121: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 23
122: TypePointer Output 120(fvec4)
123(out_fragColor): 122(ptr) Variable Output
124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 121 18 119 12 21 125 123(out_fragColor) 58
127: 33(float) Constant 1065353216
46: 7(int) Constant 7
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 46 12
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 50 31 18 28 12 17 23
52: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
53(Mesh): TypeStruct 29(ptr)
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 28 12 21 32 12 13
55: TypeRuntimeArray 53(Mesh)
56: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 54 12
57(PerPass_meshes): TypeStruct 55
59: 7(int) Constant 13
60: 7(int) Constant 8
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 40 56 18 59 60 12 12 13
61: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 62 22 18 28 12 21 62 12 13 58
63: TypePointer StorageBuffer 57(PerPass_meshes)
64: 7(int) Constant 12
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 61 64 12
66(perPass_meshes): 63(ptr) Variable StorageBuffer
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 68 61 18 28 12 21 68 66(perPass_meshes) 60
69: TypeInt 32 1
71: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 70 10 23 12
72: 69(int) Constant 0
73: TypePointer Input 7(int)
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 22 12
75(tri_idx0): 73(ptr) Variable Input
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 77 9 18 28 12 21 77 75(tri_idx0) 60
79: TypePointer StorageBuffer 53(Mesh)
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 54 64 12
84: TypePointer Function 29(ptr)
85: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
88: 7(int) Constant 23
89: TypeVector 33(float) 3
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 13
91: TypePointer Function 89(fvec3)
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 46 12
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 95 90 18 88 12 17 23
98: 7(int) Constant 25
104: TypePointer PhysicalStorageBufferEXT 33(float)
105: 7(int) Constant 5349
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 35 105 12
110: 7(int) Constant 24
129: 7(int) Constant 27
130: TypeVector 33(float) 4
131: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 23
132: TypePointer Output 130(fvec4)
133: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 131 13 12
134(out_fragColor): 132(ptr) Variable Output
135: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 136 131 18 129 12 21 136 134(out_fragColor) 60
138: 33(float) Constant 1065353216
Line 1 20 11
14(main): 4 Function None 5
15: Label
46(meshData): 45(ptr) Variable Function
85(vertex_pos0): 84(ptr) Variable Function
48(meshData): 45(ptr) Variable Function
93(vertex_pos0): 91(ptr) Variable Function
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
26: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 47 46(meshData) 50
73: 7(int) Load 70(tri_idx0)
75: 74(ptr) AccessChain 62(perPass_meshes) 68 73
76: 51(Mesh) Load 75
77: 29(ptr) CompositeExtract 76 0
79: 78(ptr) AccessChain 46(meshData) 68
Store 79 77
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
88: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 85(vertex_pos0) 50
89: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 90 90 12 12
91: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
92: 78(ptr) AccessChain 46(meshData) 68
93: 29(ptr) Load 92
94: 7(int) Load 70(tri_idx0)
95: 7(int) IMul 13 94
97: 96(ptr) AccessChain 93 68 95
98: 33(float) Load 97 Aligned 4
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 100 100 12 12
101: 78(ptr) AccessChain 46(meshData) 68
102: 29(ptr) Load 101
103: 7(int) Load 70(tri_idx0)
104: 7(int) IMul 13 103
105: 7(int) IAdd 104 22
106: 96(ptr) AccessChain 102 68 105
107: 33(float) Load 106 Aligned 4
108: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 90 90 12 12
109: 78(ptr) AccessChain 46(meshData) 68
110: 29(ptr) Load 109
111: 7(int) Load 70(tri_idx0)
112: 7(int) IMul 13 111
113: 7(int) IAdd 112 24
114: 96(ptr) AccessChain 110 68 113
115: 33(float) Load 114 Aligned 4
116: 82(fvec3) CompositeConstruct 98 107 115
117: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
Store 85(vertex_pos0) 116
118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 119 119 12 12
126: 82(fvec3) Load 85(vertex_pos0)
128: 33(float) CompositeExtract 126 0
129: 33(float) CompositeExtract 126 1
130: 33(float) CompositeExtract 126 2
131: 120(fvec4) CompositeConstruct 128 129 130 127
Store 123(out_fragColor) 131
51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 49 48(meshData) 52
78: 7(int) Load 75(tri_idx0)
81: 79(ptr) AccessChain 66(perPass_meshes) 72 78
82: 53(Mesh) Load 81
83: 29(ptr) CompositeExtract 82 0
86: 84(ptr) AccessChain 48(meshData) 72
Store 86 83
87: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 88 88 12 12
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 94 93(vertex_pos0) 52
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 98 98 12 12
99: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 88 88 12 12
100: 84(ptr) AccessChain 48(meshData) 72
101: 29(ptr) Load 100
102: 7(int) Load 75(tri_idx0)
103: 7(int) IMul 13 102
107: 104(ptr) AccessChain 101 72 103
108: 33(float) Load 107 Aligned 4
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 110 110 12 12
111: 84(ptr) AccessChain 48(meshData) 72
112: 29(ptr) Load 111
113: 7(int) Load 75(tri_idx0)
114: 7(int) IMul 13 113
115: 7(int) IAdd 114 22
116: 104(ptr) AccessChain 112 72 115
117: 33(float) Load 116 Aligned 4
118: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 98 98 12 12
119: 84(ptr) AccessChain 48(meshData) 72
120: 29(ptr) Load 119
121: 7(int) Load 75(tri_idx0)
122: 7(int) IMul 13 121
123: 7(int) IAdd 122 24
124: 104(ptr) AccessChain 120 72 123
125: 33(float) Load 124 Aligned 4
126: 89(fvec3) CompositeConstruct 108 117 125
127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 88 88 12 12
Store 93(vertex_pos0) 126
128: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 129 129 12 12
137: 89(fvec3) Load 93(vertex_pos0)
139: 33(float) CompositeExtract 137 0
140: 33(float) CompositeExtract 137 1
141: 33(float) CompositeExtract 137 2
142: 130(fvec4) CompositeConstruct 139 140 141 138
Store 134(out_fragColor) 142
Return
FunctionEnd