You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Non-Semantic.Shader.DebugInfo spec, the text says that DebugSourceContinued must follow DebugSource or DebugSourceContinued.
"The previous instruction must be a DebugSource or DebugSourceContinued instruction. The previous instruction must use the same extended instruction set <id> as this one, and it must contain some text string id."
I cannot reproduce locally either. I wonder if there is a source of non-determinism. That is cause it to sometime output in a different order. For example, a hash map is used to store instructions and then it is iterated over to output the instructions.
My team will not get to this any time soon. If is it a problem for slang, they might want someone to look into it, especially if they have an environment where it reproduces.
Are you able to reproduce it with SPIRV-Tools 1.4.304.0? That was the version of spirv-opt I reproduced with. I'll add that info in the bug description.
In the Non-Semantic.Shader.DebugInfo spec, the text says that DebugSourceContinued must follow DebugSource or DebugSourceContinued.
"
The previous instruction must be a DebugSource or DebugSourceContinued instruction. The previous instruction must use the same extended instruction set <id> as this one, and it must contain some text string id."
https://github.com/KhronosGroup/SPIRV-Registry/blob/main/nonsemantic/NonSemantic.Shader.DebugInfo.100.asciidoc#DebugSourceContinued
Taking spv input which obeys that constraint, spirv-opt outputs optimized spirv that violates that constraint.
Notice how DebugSourceContinued follows DebugSource in the input, but it follows DebugCompilationUnit in the output.
To repro rename attached
repro.txt
torepro.spv
, then:I've renamed the binary SPV input "repro.spv" to "repro.txt" so github will allow me to attach it,
repro.txt
Here's the disassembly for convenience:
repro_disassembly.txt
Issue was reproduced with spirv-opt 1.4.304.0?
The text was updated successfully, but these errors were encountered: