compute: lower wide SMEM descriptor and constant loads #3555

Manually merged
github merged 4 commits from github-bot/gh-3553 into gh-pr/3553/base 2026-11-30 09:03:15 +00:00 AGit
Owner

@⁠lambirou on GitHub · 2026-11-30 04:36 UTC · original
lambirou:compute/smem-wide-loads → main · +148 −8 · 9 files · 4 commits · merged 2026-11-30 08:59 UTC

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 44a3ad5a; #3544 fixes the pre-existing startup_triage_run failure that can turn the Linux check red.

AI-assisted.

**@⁠lambirou** on GitHub · 2026-11-30 04:36 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3553) `lambirou:compute/smem-wide-loads` → `main` · +148 −8 · 9 files · 4 commits · merged 2026-11-30 08:59 UTC 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` 44a3ad5a; #3544 fixes the pre-existing `startup_triage_run` failure that can turn the Linux check red. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 04:37:31 +00:00
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 #3457 did for startup_resource_retire. The expectation is unchanged.

Refs #3507
github-bot changed target branch from main to gh-pr/3553/base 2026-11-30 09:03:13 +00:00
github manually merged commit 6940062a3a into gh-pr/3553/base 2026-11-30 09:03:15 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.