Shaders: lower ds_wrxchg2_rtn_b32 and ds_wrxchg2st64_rtn_b32 in pure 32-bit DXIL #2119
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!2119
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2119"
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?
@geiyiliyabumo on GitHub · 2026-11-25 05:25 UTC · original
geiyiliyabumo:feat/shader-ds-wrxchg2→main· +154 −2 · 2 files · 1 commits · openSummary
ds_wrxchg2_rtn_b32(0x02e) andds_wrxchg2st64_rtn_b32(0x02f) incrates/victory-shader/src/emit/lower.rs(fn ds) to two ordered,EXEC-guarded pure 32-bitRmw::Xchgatomics without enablingInt64/WIDE_OPS.ds_wrxchg2_rtn_b32) and 256-byte (ds_wrxchg2st64_rtn_b32) offset scaling, reads all source VGPRs before writingvdst[0:1](handling source/destination overlap safely), and preserves bothvdst[0]andvdst[1]on inactiveEXEClanes.crates/victory-shader/src/emit/semantics_tests.rscovering distinct offsets, equal offsets (offset0 == offset1), 256-bytest64stride, source/destination VGPR overlap, inactiveEXEClane preservation, and assertingInt64is not set.Verification
cargo xtask policy: passedcargo clippy -p victory-shader --tests -- -D warnings: passedcargo test -p victory-shader --lib lds_exchange_pair -- --test-threads=1with Microsoftdxil.dll: passed on AMD Radeon RX 9060 XT (RDNA4) and Microsoft Basic Render Driver (WARP) (192 lane results, 0 hardware/WARP mismatches)@upipibi on GitHub · 2026-11-25 05:36 UTC · original
Ran on Windows 11 with an RTX 3070 (Ampere, driver 616.56), debug build, at
85fe4dc.victory-shader: 246 passed, 3 failed, 3 ignored. The newlds_exchange_pair_ir_and_dxilandlds_exchange_pair_matches_isapass. The 3 failures are #1744's NVIDIA failures onmain. Same asmainon this hardware.Overlap, from reading: #1606 (open, conflicting with
main) also lowerswrxchg2_b32andwrxchg2st64_b32among the other LDS atomics.AI-assisted (Claude Code).
@sinan-cmyk on GitHub · 2026-11-25 10:16 UTC · original
Offline measurement on a retail dump
Result: no count change against
main.I merged head
85fe4dc1ontomain940d32f(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 23,918 onmain, 23,918 with this PR.No program changes its failure reason. The count shows that the change rejects nothing on this data. It does not show whether the output is right.
No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 10:45 UTC · original · edited 2026-11-25 22:20 UTC
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main:mainhas moved since the last triage, and the branch now conflicts incrates/victory-shader/src/emit/semantics_tests.rs. It will be reviewed again once it is rebased onto currentmain.Previous verdict for this head: merge candidate.
Generated by Claude Code
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.