Shaders: lower v_cmp_{f,t}_{i64,u64} constant 64-bit compares #658
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!658
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-658"
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?
@davi713albano-coder on GitHub · 2026-11-25 04:08 UTC · original
davi713albano-coder:shader/cmp64-f-and-t→main· +40 −0 · 2 files · 1 commits · openSummary
"f" | "t"constant compares in the"u64" | "i64"arm ofLower::compare(crates/victory-shader/src/emit/lower.rs) before callingsrc64, emittingself.lane(inst, Some(op == "t")).v_cmp_{f,t}_{i64,u64}and avoids setting theInt64(0x8000)SFI0feature bit when no 64-bit arithmetic is needed.v_cmp_f_and_t_64bit_match_rdna2incrates/victory-shader/src/emit/valu_tests.rschecking DXIL validation,SFI0 & 0x8000 == 0, and D3D12 execution results for all four opcodes.Verification
cargo clippy --workspace --all-targets --locked -- -D warnings,--all-features, andcargo test --workspace --lockedonwindows-latest.No title data used. AI-assisted.
@JRamos1993 on GitHub · 2026-11-25 05:27 UTC · original
Offline check on the retail shader pack: no program of the title reaches this path. The change is neutral for it.
victory translate --validate --listover the title's full shader pack (26,084 programs) on an RTX 5090,main310c6ebagainst this head merged onto it:mainfails onv_cmp_{f,t}_{i64,u64}.So this fix doesn't change anything for this title's shaders as the batch tool translates them. It may still matter for other programs or titles.
AI use: Claude Code with Claude Opus 5.5 ran the pack and wrote this. Nothing from the title is in it.
@HAL9000RELOADED on GitHub · 2026-11-25 13:00 UTC · original
An AMD run of this PR's new tests.
v_cmp_f_and_t_64bit_match_rdna2passes on a Radeon RX 7900 XTX (RDNA3), Windows 10 22H2, with the Agility SDK runtime from #402. They ran on the hardware device; WARP skips on this machine. Nothing else in the workspace regresses.The setup, and the same run for eight related shader PRs, are in one table on #637: #637
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.