Skip to content

Invalid SPIR-V produced from DXSO shader bytecode from Counter Strike Source apitrace. #82

@smanshahia

Description

@smanshahia

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions