Open afd opened 5 years ago
The input to SPIR-V opt is invalid, though the validator doesn't catch it. The branch from 22 -> 9 is an illegal exit from the construct headed by 8.
Marking this as a validation issue.
Thanks. In that case there must be another issue that led to spirv-opt (or glslangValidator) getting the SPIR-V into an invalid state. I'll have a look at the chain of shaders that led to this.
This archive contains files necessary to reproduce the problem
Generating SPIR-V from variant_136_reduced_final.frag using glslangValidator, and then optimizing it with the --eliminate-dead-branches option leads to SPIR-V that the validator rejects with:
Issue found using GraphicsFuzz.