compute: lower SMEM descriptor stores #3587
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3587
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3585"
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?
@lambirou on GitHub · 2026-11-30 11:00 UTC · original
lambirou:compute/smem-stores→main· +249 −2 · 4 files · 1 commits · merged 2026-11-30 11:06 UTCPart of the SMEM slice (Refs #319).
This adds the six descriptor-backed SMEM store forms that the compute AOT path can model:
s_store_dword,s_store_dwordx2,s_store_dwordx4(the 64-bit base pair is the first two words of the bound u0 descriptor) ands_buffer_store_dword,s_buffer_store_dwordx2,s_buffer_store_dwordx4(the full four-word u0 V#). The data are 1, 2 or 4 consecutive, width-aligned SGPRs; the store writes the bound raw output UAVu0at the immediate byte offset (nullis zero). The threes_scratch_store_dword*forms stay refused because the compute path has no scratch memory model.Refusals: unaligned or incomplete SGPR pairs/quads, registers above s105, a descriptor that is not the bound u0 UAV (constant/source descriptors and unloaded or table slots), data registers without a known word, overlapping stores, a lane-guarded store, SGPR offsets,
offset:,glc,dlcand negative offsets. SCC-preserving prefixes now include the two store mnemonics.Tests
compute_store_aot_smem_stores1/1,compute_store_aot_smem_wide_loads1/1.compute_store_aot_smem_stores_warpand_hardwarepass (320 words, 0 mismatch) on WARP and the AMD Radeon RX 9060 XT (driver 32.0.32029.2010).compute_store_aot_warpandcompute_store_aot_hardwarestill pass (320 words per case, 0 mismatch).form_coverage_check.pyanddocs_links_check.pypass.Coverage
+6 forms on gfx1013; the six stores are absent from the gfx1030 reference, so that table is unchanged by this PR. With the two open f16 PRs (#3588 DPP rest and #3586 SDWA unary) the combined expectation is 1,586/1,968 gfx1013 and 1,571/1,863 gfx1030.
Limits
The model requires the bound u0 descriptor: an arbitrary global pointer, a b0/t0 descriptor or a table pair is refused. A root UAV carries no length, so the caller must bind a u0 buffer that covers every accessed offset, as for the existing raw stores. The LLVM 15 binary round-trip was not replayed locally. The runs are desktop WARP/RX 9060 XT, not Xbox; the debug layer is unavailable on this host.
AI-assisted.