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

Merged
stan495 merged 1 commit from upstream-pr/1692 into main 2026-11-24 17:17:36 +00:00
stan495 commented 2026-11-24 17:13:13 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-24T17:13:13Z.


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.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6587338281 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1692). Originally posted by [stan495](https://github.com/stan495) on 2026-11-24T17:13:13Z. --- 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.
upstream-sync closed this pull request 2026-11-24 18:02:34 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1685
No description provided.