Open cheneym2 opened 1 week ago
It's probably related somehow to these function declarations, since that's being generated from the slang IR that I hacked.
%normalFunc = OpFunction %int None %26 %a = OpFunctionParameter %int OpFunctionEnd %normalFuncUsesGeneric = OpFunction %int None %26 %a_0 = OpFunctionParameter %int OpFunctionEnd
This patch fixes the issue, which appears to be spirv-opt's fault, nothing wrong that spirv-val should have caught. https://github.com/shader-slang/SPIRV-Tools/pull/8
A spirv shader produced by slang is crashing spirv-opt. The same shader passes spirv-val.