Always enable the generation of OpDebugBasicType for bool type

This commit is contained in:
Chao Chen 2023-10-25 11:50:44 -07:00 committed by arcady-lunarg
parent 0fedf7d95a
commit 9a35abff55
14 changed files with 5792 additions and 5865 deletions

View file

@ -1,14 +1,14 @@
spv.debuginfo.glsl.tese
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 333
// Id's are bound by 335
Capability Tessellation
Extension "SPV_KHR_non_semantic_info"
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 14 "main" 43 60 87 106 134 170 281 295 303 315 322
EntryPoint TessellationEvaluation 14 "main" 43 60 87 106 134 170 283 297 305 317 324
ExecutionMode 14 Quads
ExecutionMode 14 SpacingEqual
ExecutionMode 14 VertexOrderCw
@ -47,17 +47,18 @@ spv.debuginfo.glsl.tese
217: String "type.sampled.image"
218: String "@type.sampled.image"
222: String "displacementMap"
236: String "modelview"
241: String "lightPos"
244: String "frustumPlanes"
246: String "tessellatedEdgeSize"
250: String "viewportDim"
254: String "UBO"
258: String "ubo"
297: String "outViewVec"
305: String "outLightVec"
317: String "outWorldPos"
324: String "outEyePos"
231: String "bool"
238: String "modelview"
243: String "lightPos"
246: String "frustumPlanes"
248: String "tessellatedEdgeSize"
252: String "viewportDim"
256: String "UBO"
260: String "ubo"
299: String "outViewVec"
307: String "outLightVec"
319: String "outWorldPos"
326: String "outEyePos"
Name 14 "main"
Name 35 "uv1"
Name 43 "inUV"
@ -78,26 +79,26 @@ spv.debuginfo.glsl.tese
Name 184 "pos2"
Name 198 "pos"
Name 220 "displacementMap"
Name 234 "UBO"
MemberName 234(UBO) 0 "projection"
MemberName 234(UBO) 1 "modelview"
MemberName 234(UBO) 2 "lightPos"
MemberName 234(UBO) 3 "frustumPlanes"
MemberName 234(UBO) 4 "displacementFactor"
MemberName 234(UBO) 5 "tessellationFactor"
MemberName 234(UBO) 6 "viewportDim"
MemberName 234(UBO) 7 "tessellatedEdgeSize"
Name 256 "ubo"
Name 271 "gl_PerVertex"
MemberName 271(gl_PerVertex) 0 "gl_Position"
MemberName 271(gl_PerVertex) 1 "gl_PointSize"
MemberName 271(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 271(gl_PerVertex) 3 "gl_CullDistance"
Name 281 ""
Name 295 "outViewVec"
Name 303 "outLightVec"
Name 315 "outWorldPos"
Name 322 "outEyePos"
Name 236 "UBO"
MemberName 236(UBO) 0 "projection"
MemberName 236(UBO) 1 "modelview"
MemberName 236(UBO) 2 "lightPos"
MemberName 236(UBO) 3 "frustumPlanes"
MemberName 236(UBO) 4 "displacementFactor"
MemberName 236(UBO) 5 "tessellationFactor"
MemberName 236(UBO) 6 "viewportDim"
MemberName 236(UBO) 7 "tessellatedEdgeSize"
Name 258 "ubo"
Name 273 "gl_PerVertex"
MemberName 273(gl_PerVertex) 0 "gl_Position"
MemberName 273(gl_PerVertex) 1 "gl_PointSize"
MemberName 273(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 273(gl_PerVertex) 3 "gl_CullDistance"
Name 283 ""
Name 297 "outViewVec"
Name 305 "outLightVec"
Name 317 "outWorldPos"
Name 324 "outEyePos"
Decorate 43(inUV) Location 1
Decorate 60(gl_TessCoord) BuiltIn TessCoord
Decorate 87(outUV) Location 1
@ -110,31 +111,31 @@ spv.debuginfo.glsl.tese
Decorate 154(gl_PerVertex) Block
Decorate 220(displacementMap) DescriptorSet 0
Decorate 220(displacementMap) Binding 1
Decorate 232 ArrayStride 16
MemberDecorate 234(UBO) 0 ColMajor
MemberDecorate 234(UBO) 0 Offset 0
MemberDecorate 234(UBO) 0 MatrixStride 16
MemberDecorate 234(UBO) 1 ColMajor
MemberDecorate 234(UBO) 1 Offset 64
MemberDecorate 234(UBO) 1 MatrixStride 16
MemberDecorate 234(UBO) 2 Offset 128
MemberDecorate 234(UBO) 3 Offset 144
MemberDecorate 234(UBO) 4 Offset 240
MemberDecorate 234(UBO) 5 Offset 244
MemberDecorate 234(UBO) 6 Offset 248
MemberDecorate 234(UBO) 7 Offset 256
Decorate 234(UBO) Block
Decorate 256(ubo) DescriptorSet 0
Decorate 256(ubo) Binding 0
MemberDecorate 271(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 271(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 271(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 271(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 271(gl_PerVertex) Block
Decorate 295(outViewVec) Location 2
Decorate 303(outLightVec) Location 3
Decorate 315(outWorldPos) Location 5
Decorate 322(outEyePos) Location 4
Decorate 234 ArrayStride 16
MemberDecorate 236(UBO) 0 ColMajor
MemberDecorate 236(UBO) 0 Offset 0
MemberDecorate 236(UBO) 0 MatrixStride 16
MemberDecorate 236(UBO) 1 ColMajor
MemberDecorate 236(UBO) 1 Offset 64
MemberDecorate 236(UBO) 1 MatrixStride 16
MemberDecorate 236(UBO) 2 Offset 128
MemberDecorate 236(UBO) 3 Offset 144
MemberDecorate 236(UBO) 4 Offset 240
MemberDecorate 236(UBO) 5 Offset 244
MemberDecorate 236(UBO) 6 Offset 248
MemberDecorate 236(UBO) 7 Offset 256
Decorate 236(UBO) Block
Decorate 258(ubo) DescriptorSet 0
Decorate 258(ubo) Binding 0
MemberDecorate 273(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 273(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 273(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 273(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 273(gl_PerVertex) Block
Decorate 297(outViewVec) Location 2
Decorate 305(outLightVec) Location 3
Decorate 317(outWorldPos) Location 5
Decorate 324(outEyePos) Location 4
4: TypeVoid
5: TypeFunction 4
7: TypeInt 32 0
@ -236,59 +237,60 @@ spv.debuginfo.glsl.tese
225: 29(float) Constant 0
228: TypeMatrix 145(fvec4) 4
230: TypeBool
231: 230(bool) ConstantTrue
229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 146 23 231
232: TypeArray 145(fvec4) 11
233: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 146 11
234(UBO): TypeStruct 228 228 145(fvec4) 232 29(float) 29(float) 32(fvec2) 29(float)
237: 7(int) Constant 30
238: 7(int) Constant 7
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 236 229 18 237 238 12 12 13
239: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 236 229 18 237 238 12 12 13
242: 7(int) Constant 31
240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 241 146 18 242 238 12 12 13
243: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 244 233 18 10 238 12 12 13
247: 7(int) Constant 36
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 246 31 18 247 46 12 12 13
248: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 246 31 18 247 46 12 12 13
251: 7(int) Constant 35
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 250 33 18 251 238 12 12 13
252: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 246 31 18 247 46 12 12 13
253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 254 22 18 209 12 21 254 12 13 235 239 240 243 245 248 249 252
255: TypePointer Uniform 234(UBO)
256(ubo): 255(ptr) Variable Uniform
257: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 253 18 209 12 21 258 256(ubo) 46
259: 47(int) Constant 4
260: TypePointer Uniform 29(float)
264: TypePointer Function 29(float)
270: 7(int) Constant 71
271(gl_PerVertex): TypeStruct 145(fvec4) 29(float) 152 152
273: 7(int) Constant 165
272: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 146 18 22 273 12 12 13
275: 7(int) Constant 183
274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 159 31 18 22 275 12 12 13
277: 7(int) Constant 226
276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 277 12 12 13
278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 277 12 12 13
279: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 22 18 270 12 21 166 12 13 272 274 276 278
280: TypePointer Output 271(gl_PerVertex)
281: 280(ptr) Variable Output
282: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 279 18 270 12 21 1 281 46
283: TypePointer Uniform 228
291: TypePointer Output 145(fvec4)
294: 7(int) Constant 74
295(outViewVec): 133(ptr) Variable Output
296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 297 58 18 294 12 21 297 295(outViewVec) 46
302: 7(int) Constant 75
303(outLightVec): 133(ptr) Variable Output
304: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 305 58 18 302 12 21 305 303(outLightVec) 46
306: TypePointer Uniform 145(fvec4)
314: 7(int) Constant 76
315(outWorldPos): 133(ptr) Variable Output
316: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 317 58 18 314 12 21 317 315(outWorldPos) 46
321: 7(int) Constant 77
322(outEyePos): 133(ptr) Variable Output
323: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 324 58 18 321 12 21 324 322(outEyePos) 46
232: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 231 10 24 12
233: 230(bool) ConstantTrue
229: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 146 23 233
234: TypeArray 145(fvec4) 11
235: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 146 11
236(UBO): TypeStruct 228 228 145(fvec4) 234 29(float) 29(float) 32(fvec2) 29(float)
239: 7(int) Constant 30
240: 7(int) Constant 7
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 229 18 239 240 12 12 13
241: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 238 229 18 239 240 12 12 13
244: 7(int) Constant 31
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 243 146 18 244 240 12 12 13
245: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 246 235 18 10 240 12 12 13
249: 7(int) Constant 36
247: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 248 31 18 249 46 12 12 13
250: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 248 31 18 249 46 12 12 13
253: 7(int) Constant 35
251: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 252 33 18 253 240 12 12 13
254: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 248 31 18 249 46 12 12 13
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 256 22 18 209 12 21 256 12 13 237 241 242 245 247 250 251 254
257: TypePointer Uniform 236(UBO)
258(ubo): 257(ptr) Variable Uniform
259: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 260 255 18 209 12 21 260 258(ubo) 46
261: 47(int) Constant 4
262: TypePointer Uniform 29(float)
266: TypePointer Function 29(float)
272: 7(int) Constant 71
273(gl_PerVertex): TypeStruct 145(fvec4) 29(float) 152 152
275: 7(int) Constant 165
274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 156 146 18 22 275 12 12 13
277: 7(int) Constant 183
276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 159 31 18 22 277 12 12 13
279: 7(int) Constant 226
278: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 279 12 12 13
280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 162 153 18 22 279 12 12 13
281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 166 22 18 272 12 21 166 12 13 274 276 278 280
282: TypePointer Output 273(gl_PerVertex)
283: 282(ptr) Variable Output
284: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 281 18 272 12 21 1 283 46
285: TypePointer Uniform 228
293: TypePointer Output 145(fvec4)
296: 7(int) Constant 74
297(outViewVec): 133(ptr) Variable Output
298: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 299 58 18 296 12 21 299 297(outViewVec) 46
304: 7(int) Constant 75
305(outLightVec): 133(ptr) Variable Output
306: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 307 58 18 304 12 21 307 305(outLightVec) 46
308: TypePointer Uniform 145(fvec4)
316: 7(int) Constant 76
317(outWorldPos): 133(ptr) Variable Output
318: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 319 58 18 316 12 21 319 317(outWorldPos) 46
323: 7(int) Constant 77
324(outEyePos): 133(ptr) Variable Output
325: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 326 58 18 323 12 21 326 324(outEyePos) 46
Line 1 53 11
14(main): 4 Function None 5
15: Label
@ -397,50 +399,50 @@ spv.debuginfo.glsl.tese
224: 32(fvec2) Load 87(outUV)
226: 145(fvec4) ImageSampleExplicitLod 223 224 Lod 225
227: 29(float) CompositeExtract 226 0
261: 260(ptr) AccessChain 256(ubo) 259
262: 29(float) Load 261
263: 29(float) FMul 227 262
265: 264(ptr) AccessChain 198(pos) 22
266: 29(float) Load 265
267: 29(float) FSub 266 263
268: 264(ptr) AccessChain 198(pos) 22
Store 268 267
269: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 270 270 12 12
284: 283(ptr) AccessChain 256(ubo) 50
285: 228 Load 284
286: 283(ptr) AccessChain 256(ubo) 54
263: 262(ptr) AccessChain 258(ubo) 261
264: 29(float) Load 263
265: 29(float) FMul 227 264
267: 266(ptr) AccessChain 198(pos) 22
268: 29(float) Load 267
269: 29(float) FSub 268 265
270: 266(ptr) AccessChain 198(pos) 22
Store 270 269
271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 272 272 12 12
286: 285(ptr) AccessChain 258(ubo) 50
287: 228 Load 286
288: 228 MatrixTimesMatrix 285 287
289: 145(fvec4) Load 198(pos)
290: 145(fvec4) MatrixTimesVector 288 289
292: 291(ptr) AccessChain 281 50
Store 292 290
293: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 294 294 12 12
298: 145(fvec4) Load 198(pos)
299: 57(fvec3) VectorShuffle 298 298 0 1 2
300: 57(fvec3) FNegate 299
Store 295(outViewVec) 300
301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 302 302 12 12
307: 306(ptr) AccessChain 256(ubo) 77
308: 145(fvec4) Load 307
309: 57(fvec3) VectorShuffle 308 308 0 1 2
310: 57(fvec3) Load 295(outViewVec)
311: 57(fvec3) FAdd 309 310
312: 57(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 311
Store 303(outLightVec) 312
313: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 314 314 12 12
318: 145(fvec4) Load 198(pos)
319: 57(fvec3) VectorShuffle 318 318 0 1 2
Store 315(outWorldPos) 319
320: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 321 321 12 12
325: 283(ptr) AccessChain 256(ubo) 54
326: 228 Load 325
327: 145(fvec4) Load 198(pos)
328: 145(fvec4) MatrixTimesVector 326 327
329: 29(float) CompositeExtract 328 0
330: 29(float) CompositeExtract 328 1
331: 29(float) CompositeExtract 328 2
332: 57(fvec3) CompositeConstruct 329 330 331
Store 322(outEyePos) 332
288: 285(ptr) AccessChain 258(ubo) 54
289: 228 Load 288
290: 228 MatrixTimesMatrix 287 289
291: 145(fvec4) Load 198(pos)
292: 145(fvec4) MatrixTimesVector 290 291
294: 293(ptr) AccessChain 283 50
Store 294 292
295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 296 296 12 12
300: 145(fvec4) Load 198(pos)
301: 57(fvec3) VectorShuffle 300 300 0 1 2
302: 57(fvec3) FNegate 301
Store 297(outViewVec) 302
303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 304 304 12 12
309: 308(ptr) AccessChain 258(ubo) 77
310: 145(fvec4) Load 309
311: 57(fvec3) VectorShuffle 310 310 0 1 2
312: 57(fvec3) Load 297(outViewVec)
313: 57(fvec3) FAdd 311 312
314: 57(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 313
Store 305(outLightVec) 314
315: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 316 316 12 12
320: 145(fvec4) Load 198(pos)
321: 57(fvec3) VectorShuffle 320 320 0 1 2
Store 317(outWorldPos) 321
322: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 323 323 12 12
327: 285(ptr) AccessChain 258(ubo) 54
328: 228 Load 327
329: 145(fvec4) Load 198(pos)
330: 145(fvec4) MatrixTimesVector 328 329
331: 29(float) CompositeExtract 330 0
332: 29(float) CompositeExtract 330 1
333: 29(float) CompositeExtract 330 2
334: 57(fvec3) CompositeConstruct 331 332 333
Store 324(outEyePos) 334
Return
FunctionEnd