shader: keep mesh output rows with an integer element constant #3825
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-12-02T06:12:39Z.
Change
Fixes #3824. 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 #3823.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
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-12-02T07:02:33Z.
Review: APPROVED
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.Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-12-02T08:56:58Z.
Review: APPROVED
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.