Skip to content

[SPIR-V] Enum class bitfields are emitted into separate storage slots #8470

@Przemog1

Description

@Przemog1

Description

DXC does not treat enum class bitfields as a plain integer type, which can cause the enum class-typed bitfield (type) to be placed into its own 32-bit storage slot instead of being packed with the following bitfields. This may lead to a larger-than-expected struct layout and prevents full bitfield packing.

Steps to Reproduce

https://godbolt.org/z/Ga61357fn In this example, the generated struct is 12 bytes instead of 8.

Related issue: #5554

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions