shader: lower GFX10 xnor and swap ops #146
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!146
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/146/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?
@Mesrine67 on GitHub · 2026-11-24 00:57 UTC · original
Mesrine67:fix/gfx10-xnor-swap→main· +33 −4 · 1 files · 1 commits · closed without mergingThe 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.@Mesrine67 on GitHub · 2026-11-24 01:02 UTC · original
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