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.tese
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 8000b
|
||||
// Id's are bound by 357
|
||||
// Id's are bound by 359
|
||||
|
||||
Capability Tessellation
|
||||
Extension "SPV_KHR_non_semantic_info"
|
||||
|
|
@ -390,6 +390,7 @@ void main()
|
|||
344(outEyePos): 141(ptr) Variable Output
|
||||
347: 7(int) Constant 77
|
||||
345: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 346 63 18 347 12 21 346 344(outEyePos) 50
|
||||
358: 7(int) Constant 78
|
||||
14(main): 4 Function None 5
|
||||
15: Label
|
||||
36(uv1): 33(ptr) Variable Function
|
||||
|
|
@ -543,5 +544,6 @@ void main()
|
|||
355: 28(float) CompositeExtract 352 2
|
||||
356: 62(fvec3) CompositeConstruct 353 354 355
|
||||
Store 344(outEyePos) 356
|
||||
357: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 358 358 12 12
|
||||
Return
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue