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

Closed
opened 2026-12-02 06:12:44 +00:00 by github-bot · 0 comments
Owner

@⁠lukaslw-lab on GitHub · 2026-12-02 06:12 UTC · original

On main f365f125, 3 of 6,685 distinct slot 86 mesh programs in a local capture (census on #3705) 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: #3827. Every element of an output row that holds a non-float element is constant.
**@⁠lukaslw-lab** on GitHub · 2026-12-02 06:12 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3824) On main `f365f125`, 3 of 6,685 distinct slot 86 mesh programs in a local capture (census on #3705) 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: #3827. Every element of an output row that holds a non-float element is constant.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 06:12:44 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3826
No description provided.