compute: lower the DS _src2 family #3594
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!3594
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3592"
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 12:02 UTC · original
lambirou:compute/ds-src2→main· +704 −38 · 5 files · 1 commits · merged 2026-11-30 12:11 UTCPart of the DS slice (P7).
This adds the DS
_src2family in the private-LDS profile (gfx1030 16-byte records):ds_add_src2_f32/u32/u64,ds_sub_src2_u32/u64,ds_rsub_src2_u32/u64,ds_and_src2_b32/b64,ds_or_src2_b32/b64,ds_xor_src2_b32/b64,ds_inc_src2_u32/u64,ds_dec_src2_u32/u64,ds_min_src2_f32/f64/i32/i64/u32/u64,ds_max_src2_f32/f64/i32/i64/u32/u64andds_write_src2_b32/b64— the 31_src2lines ofdocs/coverage/gfx1013.tsv(the table has 31, not 32). The second source is the same lane's dword or qword atA + 4 * offset, and the update stays inside the proven record.ds_write_src2only needs the source.Refusals: an offset mode carried in the VGPR address, an offset outside the record, an unaligned 64-bit pair, an uninitialized source, a missing destination for a read-modify-write form, the group-shared gfx1013 profile (its second address can cross lanes and its atomic order is not modelled), a 4-byte stride, a lane-guarded form, GWS and
ds_ordered_count. f32/f64 min/max keep the old value on NaN, equality and opposite signed zeros; add/sub/rsub, inc/dec and the integer comparisons follow the 32/64-bit carry/borrow rules.Tests
compute_store_aot_lds_src2_warpand_hardwarepass: 64 source-built programmes and 37 mutants, 320 words compared per dispatch, 0 mismatch (WARP and AMD Radeon RX 9060 XT, driver 32.0.32029.2010).compute_store_aot_ds_route_warpre-run after the rebase).form_coverage_check.pypins exactly the 31_src2forms and keeps GWS andds_ordered_countuncovered;docs_links_check.pypasses._src2forms are absent from the RDNA 2 reference).Limits
Only the private-LDS profile is covered; the group-shared gfx1013 profile still refuses
_src2. Only direct immediate offsets 0..3 (0 or 2 for a 64-bit pair) are accepted; the VGPR offset mode, dynamic offsets and sources outside the record stay refused. GWS (6 forms) andds_ordered_countneed a separate barrier/order model. The binary/LLVM round-trip was not run locally (llvm-mcabsent); the static_src2controls are wired into that mode. The D3D12 debug layer is unavailable on this host.AI-assisted.