Skip to content

[SPIR-V] Stage input variables optimized away despite -fspv-preserve-interface #8716

Description

@artamonovoleg

Description
Vertex attributes can still be optimized away when using -fspv-preserve-interface

Steps to Reproduce
A function unrelated to the stage input was refactored from
fn(uint offset) to fn(ByteAddressBuffer buffer, uint offset). Calling this function causes attributes to be optimized away.
It's better demonstrated by this snippet: https://godbolt.org/z/fW5K7rYsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions