yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

spencer-lunargFix ShaderDebugInfo having invalid line numbers in 1.0e4c40890

main
14.7 KiB256 linesraw
1spv.debuginfo.interface_bool.glsl.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 172
5
6                              Capability Shader
7                              Extension  "SPV_KHR_non_semantic_info"
8               1:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
9               3:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint GLCompute 14  "main" 83
12                              ExecutionMode 14 LocalSize 32 1 1
13               2:             String  "spv.debuginfo.interface_bool.glsl.comp"
14               8:             String  "uint"
15              16:             String  "main"
16              19:             String  "#version 450
17
18layout (local_size_x = 32, local_size_y = 1) in;
19
20uniform UBO
21{
22	bool b;
23	bvec4 bv;
24	bool[4] ba;
25};
26
27buffer SSBO {
28	bool b;
29	bvec4 bv;
30	bool[4] ba;
31} ssbo;
32
33void main()
34{
35	if (gl_GlobalInvocationID.x == 0 && gl_GlobalInvocationID.y == 0) {
36		ssbo.b = b;
37		ssbo.bv = bv;
38		for (int i = 0; i < 4; ++i) {
39			ssbo.ba[i] = ba[i];
40		}
41	}
42}
43"
44              26:             String  "bool"
45              35:             String  "int"
46              42:             String  "b"
47              45:             String  "bv"
48              48:             String  "ba"
49              52:             String  "UBO"
50              58:             String  ""
51              69:             String  "SSBO"
52              75:             String  "ssbo"
53              85:             String  "gl_GlobalInvocationID"
54             135:             String  "i"
55             171:             String  "gl_WorkGroupSize"
56                              Name 14  "main"
57                              Name 40  "UBO"
58                              MemberName 40(UBO) 0  "b"
59                              MemberName 40(UBO) 1  "bv"
60                              MemberName 40(UBO) 2  "ba"
61                              Name 56  ""
62                              Name 61  "SSBO"
63                              MemberName 61(SSBO) 0  "b"
64                              MemberName 61(SSBO) 1  "bv"
65                              MemberName 61(SSBO) 2  "ba"
66                              Name 73  "ssbo"
67                              Name 83  "gl_GlobalInvocationID"
68                              Name 133  "i"
69                              Decorate 32 ArrayStride 16
70                              Decorate 40(UBO) Block
71                              MemberDecorate 40(UBO) 0 Offset 0
72                              MemberDecorate 40(UBO) 1 Offset 16
73                              MemberDecorate 40(UBO) 2 Offset 32
74                              Decorate 56 Binding 0
75                              Decorate 56 DescriptorSet 0
76                              Decorate 59 ArrayStride 4
77                              Decorate 61(SSBO) BufferBlock
78                              MemberDecorate 61(SSBO) 0 Offset 0
79                              MemberDecorate 61(SSBO) 1 Offset 16
80                              MemberDecorate 61(SSBO) 2 Offset 32
81                              Decorate 73(ssbo) Binding 1
82                              Decorate 73(ssbo) DescriptorSet 0
83                              Decorate 83(gl_GlobalInvocationID) BuiltIn GlobalInvocationId
84                              Decorate 169 BuiltIn WorkgroupSize
85               4:             TypeVoid
86               5:             TypeFunction 4
87               7:             TypeInt 32 0
88              10:      7(int) Constant 32
89              11:      7(int) Constant 6
90              12:      7(int) Constant 0
91               9:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
92              13:      7(int) Constant 3
93               6:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
94              18:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19
95              20:      7(int) Constant 18
96              22:      7(int) Constant 1
97              23:      7(int) Constant 4
98              24:      7(int) Constant 2
99              21:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
100              17:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
101              25:             TypeBool
102              27:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 24 12
103              28:             TypeVector 7(int) 4
104              29:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 23
105              30:             TypeVector 25(bool) 4
106              31:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23
107              32:             TypeArray 7(int) 23
108              33:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 23
109              34:             TypeInt 32 1
110              36:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 35 10 23 12
111              37:     34(int) Constant 4
112              38:             TypeArray 25(bool) 37
113              39:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 37
114         40(UBO):             TypeStruct 7(int) 28(ivec4) 32
115              43:      7(int) Constant 7
116              41:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 27 18 43 43 12 12 13
117              46:      7(int) Constant 8
118              44:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 45 31 18 46 46 12 12 13
119              49:      7(int) Constant 9
120              50:      7(int) Constant 10
121              47:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 39 18 49 50 12 12 13
122              53:      7(int) Constant 5
123              51:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 52 22 18 53 12 21 52 12 13 41 44 47
124              54:             TypePointer Uniform 40(UBO)
125              55:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 51 24 12
126              56:     54(ptr) Variable Uniform
127              57:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 58 51 18 53 12 21 58 56 46
128              59:             TypeArray 7(int) 23
129              60:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 9 23
130        61(SSBO):             TypeStruct 7(int) 28(ivec4) 59
131              63:      7(int) Constant 13
132              62:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 27 18 63 43 12 12 13
133              65:      7(int) Constant 14
134              64:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 45 31 18 65 46 12 12 13
135              67:      7(int) Constant 15
136              66:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 48 39 18 67 50 12 12 13
137              70:      7(int) Constant 12
138              68:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 69 22 18 70 12 21 69 12 13 62 64 66
139              71:             TypePointer Uniform 61(SSBO)
140              72:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 68 24 12
141        73(ssbo):     71(ptr) Variable Uniform
142              74:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 75 68 18 70 12 21 75 73(ssbo) 46
143              79:             TypeVector 7(int) 3
144              80:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 9 13
145              81:             TypePointer Input 79(ivec3)
146              82:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 80 22 12
14783(gl_GlobalInvocationID):     81(ptr) Variable Input
148              86:      7(int) Constant 20
149              84:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 85 80 18 86 12 21 85 83(gl_GlobalInvocationID) 46
150              87:             TypePointer Input 7(int)
151              88:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 22 12
152             106:      7(int) Constant 21
153             105:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 106 50 17
154             107:     34(int) Constant 0
155             108:             TypePointer Uniform 7(int)
156             109:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 24 12
157             117:     34(int) Constant 1
158             118:             TypePointer Uniform 28(ivec4)
159             119:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 24 12
160             122:      7(int) Constant 22
161             124:   28(ivec4) ConstantComposite 12 12 12 12
162             126:   28(ivec4) ConstantComposite 22 22 22 22
163             130:      7(int) Constant 23
164             129:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 130 13 105
165             131:             TypePointer Function 34(int)
166             132:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 36 43 12
167             134:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 135 36 18 130 12 129 23
168             137:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
169             151:     34(int) Constant 2
170             155:      7(int) Constant 24
171             168:      7(int) Constant 27
172             169:   79(ivec3) ConstantComposite 10 22 22
173             170:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 171 80 18 168 12 21 171 169 46
174        14(main):           4 Function None 5
175              15:             Label
176          133(i):    131(ptr) Variable Function
177              77:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
178              78:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12
179              76:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
180              90:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
181              89:     87(ptr) AccessChain 83(gl_GlobalInvocationID) 12
182              91:      7(int) Load 89
183              92:    25(bool) IEqual 91 12
184                              SelectionMerge 94 None
185                              BranchConditional 92 93 94
186              93:               Label
187              96:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
188              97:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
189              95:     87(ptr)   AccessChain 83(gl_GlobalInvocationID) 22
190              98:      7(int)   Load 95
191              99:    25(bool)   IEqual 98 12
192                                Branch 94
193              94:             Label
194             100:    25(bool) Phi 92 15 99 93
195             103:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
196             104:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 86 86 12 12
197                              SelectionMerge 102 None
198                              BranchConditional 100 101 102
199             101:               Label
200             111:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 105
201             112:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 106 106 12 12
202             110:    108(ptr)   AccessChain 56 107
203             113:      7(int)   Load 110
204             114:    25(bool)   INotEqual 113 12
205             115:      7(int)   Select 114 22 12
206             116:    108(ptr)   AccessChain 73(ssbo) 107
207                                Store 116 115
208             121:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 122 122 12 12
209             120:    118(ptr)   AccessChain 56 117
210             123:   28(ivec4)   Load 120
211             125:   30(bvec4)   INotEqual 123 124
212             127:   28(ivec4)   Select 125 126 124
213             128:    118(ptr)   AccessChain 73(ssbo) 117
214                                Store 128 127
215             138:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
216             139:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
217             136:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 134 133(i) 137
218                                Store 133(i) 107
219                                Branch 140
220             140:               Label
221             144:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
222             145:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
223                                LoopMerge 142 143 None
224                                Branch 146
225             146:               Label
226             148:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
227             149:           4   ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
228             147:     34(int)   Load 133(i)
229             150:    25(bool)   SLessThan 147 37
230                                BranchConditional 150 141 142
231             141:                 Label
232             153:           4     ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
233             154:           4     ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 155 155 12 12
234             152:     34(int)     Load 133(i)
235             156:     34(int)     Load 133(i)
236             157:    108(ptr)     AccessChain 56 151 156
237             158:      7(int)     Load 157
238             159:    25(bool)     INotEqual 158 12
239             160:      7(int)     Select 159 22 12
240             161:    108(ptr)     AccessChain 73(ssbo) 151 152
241                                  Store 161 160
242                                  Branch 143
243             143:                 Label
244             163:           4     ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 129
245             164:           4     ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 130 130 12 12
246             162:     34(int)     Load 133(i)
247             165:     34(int)     IAdd 162 117
248                                  Store 133(i) 165
249                                  Branch 140
250             142:               Label
251                                Branch 102
252             102:             Label
253             166:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
254             167:           4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 168 168 12 12
255                              Return
256                              FunctionEnd