tests: use an encodable scratch-store refusal control #1692

Manually merged
github merged 1 commit from gh-pr/1692/head into gh-pr/1692/base 2026-11-26 23:26:29 +00:00
Owner

@⁠stan495 on GitHub · 2026-11-24 17:13 UTC · original
stan495:codex/compute-scratch-store-control → main · +13 −2 · 1 files · 1 commits · merged 2026-11-24 17:17 UTC

Refs #1655 and #1648.

The scratch-store refusal control used a two-operand string that does not assemble for gfx1013. Use scratch_store_dword off, v15, s0 before s_endpgm in the indexed fixture with the whole-register scratch-base write. The binary suite assembles the fixture, wraps it in a synthetic compute container, and requires the CLI to report Unsupported compute instruction: scratch_store_dword off, v15, s0 and leave no HLSL output. The change is confined to the test.

Validation

Tested f2b10057eeabf73dd8ff76203f0afbdd45484b38 on top of 80f413a76a96c297b32890a57450ace20ecd3237.

  • python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1 passed with LLVM 15.0.7.
  • cmake --build --preset release --target offscreen_check --parallel 8 passed.
  • ctest --preset release --no-tests=error -R '^compute_store_aot_(scratch_base_)?(hardware|warp)$' -V reported 4 passed, 0 failed, 0 skipped. Windows 11 build 26200.9974, Radeon RX 7900 XTX driver 32.0.32029.2010 and WARP driver 10.0.26100.9818. The scratch-base readbacks matched all 320 words, including guards, for both dispatch sizes on each adapter. The D3D12 debug layer was enabled and reported zero errors and warnings.
**@⁠stan495** on GitHub · 2026-11-24 17:13 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1692) `stan495:codex/compute-scratch-store-control` → `main` · +13 −2 · 1 files · 1 commits · merged 2026-11-24 17:17 UTC Refs #1655 and #1648. The scratch-store refusal control used a two-operand string that does not assemble for gfx1013. Use `scratch_store_dword off, v15, s0` before `s_endpgm` in the indexed fixture with the whole-register scratch-base write. The binary suite assembles the fixture, wraps it in a synthetic compute container, and requires the CLI to report `Unsupported compute instruction: scratch_store_dword off, v15, s0` and leave no HLSL output. The change is confined to the test. ## Validation Tested `f2b10057eeabf73dd8ff76203f0afbdd45484b38` on top of `80f413a76a96c297b32890a57450ace20ecd3237`. - `python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1` passed with LLVM 15.0.7. - `cmake --build --preset release --target offscreen_check --parallel 8` passed. - `ctest --preset release --no-tests=error -R '^compute_store_aot_(scratch_base_)?(hardware|warp)$' -V` reported 4 passed, 0 failed, 0 skipped. Windows 11 build 26200.9974, Radeon RX 7900 XTX driver 32.0.32029.2010 and WARP driver 10.0.26100.9818. The scratch-base readbacks matched all 320 words, including guards, for both dispatch sizes on each adapter. The D3D12 debug layer was enabled and reported zero errors and warnings.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:26:27 +00:00
github manually merged commit f2b10057ee into gh-pr/1692/base 2026-11-26 23:26:29 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.