shader: keep mesh output rows with an integer element constant #3827
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3827
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3825"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@lukaslw-lab on GitHub · 2026-12-02 06:12 UTC · original
lukaslw-lab:shader/mesh-flat-integer-rows→main· +23 −2 · 2 files · 1 commits · merged 2026-12-02 08:57 UTCChange
Fixes #3826. In a direct mesh or vertex output signature, an element whose row also holds an integer element is now emitted with constant interpolation (
generic()insrc/gfx1013_direct_graphics.inl). Before, a float in such a row was linear, so DXIL validation rejected the row. Rows holding only floats are unchanged.Verification
Commit
50a90fd5on mainf365f125. Windows 10 19045, RTX 3080 Ti (driver 32.0.16.1047), in-box D3D12 runtime, DXC 1.9.2609, release preset.ctest --test-dir out/build/release -R '^native_direct_mesh$'signature element TEXCOORD at location (1,1) ... has interpolation mode that differs from another element packed into the same row.ctest --test-dir out/build/release -R '^native_|mesh|ngg|graphics' -j4(678 tests, on maine958b8e8)f365f125: 82 fail the same way (GPU tests on this host's in-box Win10 D3D12 runtime, e.g.CreatePipelineState 0x80070057). The 2native_indexed_pixel_texture_*tests skip on both after #3825.native_translator_corpus_iris flaky on plain main too (3 of 8 runs passed, 2 of 8 on this branch;incomplete or conflicting outputson a compute key).0dd65da1)Validation failed.programs now compile (1,036 → 1,039 OK); no other program changes outcometests/native_direct_mesh_check.py, built on the existing source-built container fixture:integer-row: u32COLOR.xand f32TEXCOORD.yin one row;TEXCOORDbecomes constant;float-row: two floats in one row;TEXCOORDstays linear.Evidence and follow-up
v_interp_mov_f32.Checklist
🤖 Generated with Claude Code
s_bitset1_b32, then stop at a scalar loop #3705@Leyukaka on GitHub · 2026-12-02 07:02 UTC · original · approved these changes
Review of
50a90fd5. Read the diff; not built or run.The change is limited to output rows in
generic()(src/gfx1013_direct_graphics.inl:198-203). An output element now gets constant interpolation when its row also holds a non-system element that is not a float (component != 3). Before, only the integer element itself was constant. A float packed beside it stayed linear, and DXIL validation rejected the row. What I checked:!input), so pixel-stage interpolation is not affected.s.system, and the predicate checks!o.system. This matches the scope ofgeneric().integer-rowandfloat-row, check the interpolation field ofTEXCOORDin the dumped signature (constant 1, linear 2). The description reports the failure with the source change reverted.No changes requested. Approving
50a90fd5.s_bitset1_b32, then stop at a scalar loop #3705@R0Y00 on GitHub · 2026-12-02 08:56 UTC · original · approved these changes
Independently built
compile_dxilin Windows Debug at50a90fd5and ranctest --preset dev --no-tests=error -j 1 -R '^native_direct_(mesh|container)$' --output-on-failure. Both tests passed, including the mixed integer/float row and the all-float control. The change is confined to output signatures and preserves the interpolation mode of all-float rows.