Shaders: lower 64-bit texture atomics to DXIL i64 atomics #1899
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!1899
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1899"
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?
@TansuoTro on GitHub · 2026-11-25 00:21 UTC · original
TansuoTro:feat/shader-64bit-image-atomics→main· +254 −50 · 6 files · 1 commits · openSummary
Implements 64-bit image atomics (image_atomic_* with dmask=3, or xF for cmpswap), which previously stopped shader translation at
emit/lower.rs.dx.op.atomicBinOp.i64/dx.op.atomicCompareExchange.i64(opcodes 78/79) on the heap texture handle; supports add/sub/and/or/xor/smin/smax/umin/umax/swap/cmpswap, with glc returning the old 64-bit value via split registers.Uint64TextureUavtest view.dxil.dllwhen available (skips cleanly otherwise).Verification
cargo test --workspace -q: passcargo clippy --workspace --all-targets --locked -- -D warnings: passcargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passdxil.dllvalidation of all generated 64-bit/32-bit atomic shaders: passTested on Game
@upipibi on GitHub · 2026-11-25 00:26 UTC · original
Heads-up from reading, not a run: this PR's base (
ffe310e) predates0b35b7fonmain, which already lowers 64-bit image atomics. TheR32G32_UINTview uses the low dword in R and the data as an i64.subis done as add of the negation. It setsflags::INT64 | ATOMIC64_TYPED | ATOMIC64_HEAP(emit/lower.rsaround line 7718), andvalu_tests.rshasimage_atomics_of_64_bits. GitHub reports this PR as conflicting withmainnow.If something here isn't in
main(theUint64TextureUavtest view, or an opmainrefuses), rebasing it down to that part would keep it reviewable.AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 02:17 UTC · original
Automated triage for the maintainers.
This pull request does not merge cleanly into
main. Conflicting files:crates/victory-gpu/src/descriptor/host.rs,crates/victory-shader/src/emit/host.rs,crates/victory-shader/src/emit/lower.rs,crates/victory-shader/src/emit/mod.rs,crates/victory-shader/src/emit/shader.rs,crates/victory-shader/src/emit/valu_tests.rs.It will be reviewed once it is rebased onto the current
main.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.