Repository navigation
Shaders: lower v_cmp_{f,t}_{i64,u64} constant 64-bit compares - #658
davi713albano-coder wants to merge 1 commit into
Conversation
|
Offline check on the retail shader pack: no program of the title reaches this path. The change is neutral for it.
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. |
|
An AMD run of this PR's new tests. The setup, and the same run for eight related shader PRs, are in one table on #637: #637 (comment) |
Summary
"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.