shader: lower GFX10 xnor and swap ops #146
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/146"
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 Marvisak/VIctory. Originally posted by Mesrine67 on 2026-11-24T00:57:46Z.
The GTA VI Xbox build 1.0.2.1 shader archive contains
v_xnor_b32andv_swap_b32, but the lowerer did not support them. This patch lowersv_xnor_b32as a bitwise complement of XOR andv_swap_b32as an exchange of the source and destination VGPR values for each active lane. It rejects modifiers that the instruction does not support.Validation:
cargo test -p victory-shader— 57 passed.cargo clippy -p victory-shader -- -D warnings— passed.rustfmt --edition 2024 --check crates/victory-shader/src/emit/lower.rs— passed.shaders.rpf: 22,156 emitted and 21,971 validated. The previous recorded baseline was 22,148 emitted and 21,963 validated. No D3D12 GPU pipelines or game executable were run.cargo fmt --checkreports formatting diffs in other unchanged files; the focused check for the modified file passes.Imported from Marvisak/VIctory. Originally posted by Mesrine67 on 2026-11-24T01:02:37Z.
This PR is superseded by upstream PR #58, which already merged
v_xnor_b32andv_swap_b32lowering. I opened this while my localupstream/mainwas still at062ad14; the subsequent fetch brought in the existing implementation. Closing to avoid a duplicate contribution.Pull request closed