Preserve mesh output interpolation from native PSV0 #858
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!858
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/858/head"
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?
@Kamiloj9 on GitHub · 2026-11-25 10:55 UTC · original
Kamiloj9:codex/preserve-native-mesh-interpolation→main· +169 −0 · 2 files · 1 commits · closed without mergingChange
Read mesh vertex-output interpolation modes from the original shader's PSV0. Match its records to the OSG1 entries by semantic name and index, row, column, width, and original component type. Apply the result only when the allocated generic float entries match unambiguously and the resulting modes agree within each affected packed row.
The previous type-based default declared a flat float beside a flat integer as linear. For two captured mesh programs, the original metadata and the linked pixel shader agree on the flat mode.
Verification
@avt0m4t48 on GitHub · 2026-11-25 11:10 UTC · original
I independently checked the exact base
f85101band head9b57cb8with 11 original synthetic mesh metadata cases. In two different PSV0 record orders, the emitted float beside a flat integer changed from mode 2 to mode 1, and a separate float declared as sample interpolation changed from mode 2 to mode 7. The integer and linear float controls kept their modes.Eight fallback cases emitted byte-identical DXIL containers to base, including duplicate matches, a wrong semantic name or index, a packed-row conflict, and a truncated signature record. Truncation confined to the trailing input/output dependency masks preserved the recovered modes, since those masks are outside the signature tables used here.
The untouched Linux shader suites passed with 171 tests at base and 172 at head, with two ignored each. Windows MSVC cross-target
cargo check --testspassed at head. This cycle checked emitted metadata and compilation. It used no game files and did not run Microsoft DXIL validation, Windows execution, or GPU readback.AI-assisted using Codex.
@MamaLeVrai on GitHub · 2026-11-25 12:23 UTC · original
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
9b57cb8intomainf85101bin a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails with exactly the errorsmainitself has on this machine (placed_filler_twins,depth_written, a sort; PR #841 fixes them), also with--all-features; this PR adds none.cargo test --workspace --locked: run 1: stopped atindirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields(the one that fails onmainitself most runs here (PR #849 and #847 fix its assertion)); run 2: stopped atindirect::tests::warp_budget_saturates_without_wraparound_and_preserves_draw_fields(the one that fails onmainitself most runs here (PR #849 and #847 fix its assertion)) (mainalone: 555 passed, 0 failed, 11 ignored). The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
Pull request closed