Converting a DXSO shader bytecode from Counter Strike Source trace captured using apitrace to SPIR-V is not proper. Running spirv-val on the generated SPIR-V produces the following error: "error: line 257: Invalid instruction word count: 0". I discovered that one of the SPIR-Vinstructions is all zero bytes, that makes it an invalid SPIR-V file. The culprit instruction roots from "SpirvPatchTable" object's all first 5 "SpirvPatchEntry" members having offset=0 and location=-1.
Converting a DXSO shader bytecode from Counter Strike Source trace captured using apitrace to SPIR-V is not proper. Running spirv-val on the generated SPIR-V produces the following error: "error: line 257: Invalid instruction word count: 0". I discovered that one of the SPIR-Vinstructions is all zero bytes, that makes it an invalid SPIR-V file. The culprit instruction roots from "SpirvPatchTable" object's all first 5 "SpirvPatchEntry" members having offset=0 and location=-1.