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

Closed
opened 2026-12-02 06:12:19 +00:00 by lukaslw-lab · 0 comments
lukaslw-lab commented 2026-12-02 06:12:19 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T06:12:19Z.


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: #3825. Every element of an output row that holds a non-float element is constant.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6738300728 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3824). Originally posted by [lukaslw-lab](https://github.com/lukaslw-lab) on 2026-12-02T06:12:19Z. --- 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: #3825. Every element of an output row that holds a non-float element is constant.
Sign in to join this conversation.
No labels
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.

Reference
R0Y00/Xbox2Windows#3824
No description provided.