Skip to content

shader: a mesh output row that packs a u32 and an f32 fails DXIL validation #3824

Done

Description

@lukaslw-lab

On main f365f125, 3 of 6,685 distinct slot 86 mesh programs in a local capture (census on #3703) fail in compile_dxil with only Validation failed.. The validator's full message is:

error: signature element COLOR at location (4,1) size (1,1) has interpolation mode that differs from another element packed into the same row.
Output row 4 Type Mode emitted
COLOR2.x u32 constant
COLOR3.y f32 linear
  • generic() in src/gfx1013_direct_graphics.inl emits integer outputs as constant and float outputs as linear. A DXIL signature row holds one interpolation mode, and integer elements must be constant.
  • The paired guest pixel stage reads both channels of that attribute with v_interp_mov_f32 (flat), so constant matches the guest.
  • Fix: shader: keep mesh output rows with an integer element constant #3825. Every element of an output row that holds a non-float element is constant.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions