Sanitize debug source location tracking for implicit branch and return
This patch tries to attach debug location of a branch/return instruction to its predecessor or the closing brace. If none could be found, no debug info should be emitted.
This commit is contained in:
parent
b1fac200c4
commit
a496a34b43
30 changed files with 4713 additions and 4253 deletions
|
|
@ -1,7 +1,7 @@
|
|||
spv.debuginfo.glsl.vert
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 445
|
||||
// Id's are bound by 447
|
||||
|
||||
Capability Shader
|
||||
Extension "SPV_KHR_non_semantic_info"
|
||||
|
|
@ -399,6 +399,7 @@ void main()
|
|||
437(outViewVec): 33(ptr) Variable Output
|
||||
440: 7(int) Constant 104
|
||||
438: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 439 32 18 440 12 21 439 437(outViewVec) 39
|
||||
446: 7(int) Constant 105
|
||||
14(main): 4 Function None 5
|
||||
15: Label
|
||||
76(s): 73(ptr) Variable Function
|
||||
|
|
@ -662,5 +663,6 @@ void main()
|
|||
443: 31(fvec3) VectorShuffle 441 441 0 1 2
|
||||
444: 31(fvec3) FNegate 443
|
||||
Store 437(outViewVec) 444
|
||||
445: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 446 446 12 12
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue