Skip to content

compute: lower wide SMEM descriptor and constant loads - #3553

Merged
tedin7 merged 4 commits into
R0Y00:mainfrom
lambirou:compute/smem-wide-loads
Nov 30, 2026
Merged

tedin7 merged 4 commits into
R0Y00:mainfrom
lambirou:compute/smem-wide-loads

Conversation

@lambirou

Copy link
Copy Markdown
Contributor

Refs the SMEM coverage slice in the 2026-11-30 plan.

tools/compute_store_aot.py already decoded s_load_dwordx4/x8 and s_buffer_load_dword/x2/x4. This admits the next widths:

  • s_load_dwordx16: four consecutive 16-byte descriptor slots (16 words).
  • s_buffer_load_dwordx8: eight words from the bound constant record.
  • s_buffer_load_dwordx16: all sixteen words, at offset 0.

The source-built test compute_store_aot_smem_wide_loads checks the accepted words, the highest valid destinations (s88..s103, s96..s103, s80..s95), and refusals for misaligned destinations, out-of-range registers, incomplete descriptor/constant bases, offsets past the 16-word record, overlapping destinations and a fifth table slot.

Coverage

The three forms exist in both references: +3 forms in gfx1013 and +3 in gfx1030. The isolated test measures 3/1,968 and 3/1,863; the expected full table is 1,483/1,968 and 1,474/1,863.

Tests

  • ctest --preset dev --no-tests=error -R '^compute_store_aot_smem_wide_loads$' -V -> 1/1 passed (10.39 s).
  • python -B tests/form_coverage_check.py -> passed.
  • git diff --check -> clean.

Not measured: a D3D12 draw/DXC compile for these forms; the check is source-built lowering only. The existing compute_store_aot_* suite was not replayed in this worktree.

The branch is based on red main 44a3ad5; #3542 fixes the pre-existing startup_triage_run failure that can turn the Linux check red.

AI-assisted.

case6 of startup_resource_retire_title releases the newer wrapper and calls settle() without waiting for the queues. Every release signals a release-time fence on each registered queue, and settle() only resubmits the drain list, so a fence that has not completed leaves both wrappers retained and the stage fails with retained=131072/2 against 65536/1. Sync the direct and gated queues before settle(), as R0Y00#3457 did for startup_resource_retire. The expectation is unchanged.

Refs R0Y00#3507
@tedin7
tedin7 merged commit 4dd20e1 into R0Y00:main Nov 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants