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.geom
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 274
|
||||
// Id's are bound by 276
|
||||
|
||||
Capability Geometry
|
||||
Capability MultiViewport
|
||||
|
|
@ -333,6 +333,7 @@ void main(void)
|
|||
261: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 262 30 18 259 12 21 262 260(gl_PrimitiveIDIn) 68
|
||||
266: 7(int) Constant 66
|
||||
273: 7(int) Constant 68
|
||||
275: 7(int) Constant 69
|
||||
14(main): 4 Function None 5
|
||||
15: Label
|
||||
34(i): 31(ptr) Variable Function
|
||||
|
|
@ -446,5 +447,6 @@ void main(void)
|
|||
271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
|
||||
272: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 273 273 12 12
|
||||
EndPrimitive
|
||||
274: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 275 275 12 12
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue