pixel_aot: lower wave32 masked regions #2146

Closed
tedin7 wants to merge 1 commit from upstream-pr/2154 into main
tedin7 commented 2026-11-25 01:48:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:48:03Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6595258091 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2154). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T01:48:03Z. --- 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.
upstream-sync closed this pull request 2026-11-25 03:01:09 +00:00
R0Y00 commented 2026-11-25 03:01:21 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T02:17:00Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7150530842 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2154#issuecomment-7150530842). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-25T02:17:00Z. --- 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

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!2146
No description provided.