Shaders: lower RDNA2 LDS integer atomics #1281
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!1281
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1281"
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?
@spk-c on GitHub · 2026-11-26 10:10 UTC · original
spk-c:submit/rdna2-lds-integer-atomics→main· +300 −4 · 3 files · 4 commits · openAI-assisted change.
Summary
Lower
ds_inc_u32,ds_dec_u32,ds_rsub_u32andds_mskor_b32, including their returning forms. INC and DEC use DATA0 as an unsigned limit. Reverse subtraction wraps modulo 2^32, and masked OR clears DATA0 bits before OR-ing in DATA1. The returning forms deliver the old value observed by the successful compare-exchange.The synthetic reference cases cover unsigned boundaries, operand order, result and return values, and contention. AMD RDNA2 ISA, section 12.13.
Validation
Update against upstream
06702feMerged upstream without rewriting history. Kept the upstream dispatch-spread regression and the seven existing LDS integer tests. Moved the integer compare-exchange helper into
emit/lds_integer.rssolower.rsstays below the existing 512 KiB asset-policy limit (522,453 bytes); no policy changes. Removed an unreachableadd_f32match alternative; existing floating-point lowering is unchanged.Exact head
c19964c29d0e0a3a8ead26c640fd9d692e70942dpassed local Windows Rust 1.98.1 workspace Cargo Check, strict Clippy (ordinary and all-features), the three synthetic integer lowering tests, and asset policy (221 files). Total elapsed 12.95 seconds. The four SM 6.6 integer value tests are still ignored by default on this submission. A broader LDS-related run before the module extraction hit the existing float-atomic test'sno SM 6.6 device availablefailure with the Windows 10 inbox runtime. No new hardware result or performance claim. AI-assisted.Current upstream integration (
52ac4ec)Merged current upstream without rewriting history. New head
74e3ac145dfb333c2b4c37aa4dd924e0c8a9ddaa. Preserved the upstream halves and dispatch_threads modules alongside lds_integer. Clean local Windows workspace check and Clippy (all targets/all features, warnings denied), three focused INC/DEC, RSUB and MSKOR lowering regressions, and diff check passed. The four SM 6.6 value tests were not rerun. Full asset policy remains blocked by upstream's existing oversized source files (#1357); no policy bypass. AI-assisted.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.