pixel_aot: lower wave32 masked regions #2154

Closed
github-bot wants to merge 1 commit from gh-pr/2154/head into gh-pr/2154/base
Owner

@⁠tedin7 on GitHub · 2026-11-25 01:48 UTC · original
tedin7:x2w-2137-pixel-aot-wave32-masked → main · +257 −23 · 4 files · 1 commits · closed without merging

Part of #2137

What this unblocks: pixel_aot lowers wave32 masked regions (s_and_saveexec_b32, s_mov_b32/s_or_b32 closes, s_andn2_b32 else, s_cbranch_execz skips) to the same HLSL as the wave64 originals.

Everything is gated on wave_size=32. Other profiles keep today's refusal. A region accepts only the close, else and skip target of its own width. An untracked or pair condition, a pending load on the save register, a non-entry mask, a wrong close register and an SCC reader after a close are refused.

Also: tests/form_coverage_check.py moves s_and_saveexec_b32 from rejected to masked forms. docs/experiments.md documents the wave32 spellings.

Verification:

  • python3 -B tests/pixel_aot_check.py : pass (includes new check_masked_wave32_controls, HLSL equality with wave64 and refusal controls)
  • python3 -B tests/form_coverage_check.py : pass
  • python3 -B tests/docs_links_check.py : pass
  • python3 -B tests/rdna2_tools_check.py : pass
  • NOT run locally: pixel_aot_exec_regions_{warp,hardware} WARP/hardware draws (wave32 variants and mutants added to check_masked_draw and check_masked_else_draw) and the LLVM round trip (no llvm-mc here). Needs Win2025 before Ready.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 01:48 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2154) `tedin7:x2w-2137-pixel-aot-wave32-masked` → `main` · +257 −23 · 4 files · 1 commits · closed without merging Part of #2137 What this unblocks: `pixel_aot` lowers wave32 masked regions (`s_and_saveexec_b32`, `s_mov_b32`/`s_or_b32` closes, `s_andn2_b32` else, `s_cbranch_execz` skips) to the same HLSL as the wave64 originals. Everything is gated on `wave_size=32`. Other profiles keep today's refusal. A region accepts only the close, else and skip target of its own width. An untracked or pair condition, a pending load on the save register, a non-entry mask, a wrong close register and an SCC reader after a close are refused. Also: `tests/form_coverage_check.py` moves `s_and_saveexec_b32` from rejected to masked forms. `docs/experiments.md` documents the wave32 spellings. Verification: - `python3 -B tests/pixel_aot_check.py` : pass (includes new `check_masked_wave32_controls`, HLSL equality with wave64 and refusal controls) - `python3 -B tests/form_coverage_check.py` : pass - `python3 -B tests/docs_links_check.py` : pass - `python3 -B tests/rdna2_tools_check.py` : pass - NOT run locally: `pixel_aot_exec_regions_{warp,hardware}` WARP/hardware draws (wave32 variants and mutants added to `check_masked_draw` and `check_masked_else_draw`) and the LLVM round trip (no llvm-mc here). Needs Win2025 before Ready. AI-assisted; commands listed were executed locally.
Part of #2137. Adds s_and_saveexec_b32, the s_mov_b32/s_or_b32 closes, s_andn2_b32 else and b32 s_cbranch_execz skips under wave_size=32, with width and SCC refusals, docs and tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:00:56 +00:00
github-bot closed this pull request 2026-11-27 00:00:56 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-25 02:17 UTC · original

Thanks for checking this profile independently. The original #2137 implementation landed in #2163 (c93c09dc). It covers the same wave32 forms, the wrong-width and wrong-register refusals, and SCC readers after either close. I also ran the paired wave32/wave64 draws and mutations on WARP and RTX 4060 Laptop. Closing this draft as superseded. Any distinct regression you find is welcome as a focused follow-up.

**@⁠R0Y00** on GitHub · 2026-11-25 02:17 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2154#issuecomment-7150530842) Thanks for checking this profile independently. The original #2137 implementation landed in #2163 (c93c09dc). It covers the same wave32 forms, the wrong-width and wrong-register refusals, and SCC readers after either close. I also ran the paired wave32/wave64 draws and mutations on WARP and RTX 4060 Laptop. Closing this draft as superseded. Any distinct regression you find is welcome as a focused follow-up.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.