pixel_aot: lower 13 SDWA cvt, frexp_exp, and pkrtz forms #2563

Merged
KomaGuy merged 6 commits from upstream-pr/2571 into main 2026-11-25 23:02:41 +00:00
KomaGuy commented 2026-11-25 21:24:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KomaGuy on 2026-11-25T21:24:57Z.


Summary

Lowers 13 SDWA conversion, exponent, and packed-RTZ forms in tools/pixel_aot.py (counted in both docs/coverage/gfx1013.tsv and docs/coverage/rdna2.tsv), with static refusal controls, pixel_aot_sdwa_cvt_{warp,hardware} draw tests, LLVM 15 check_binary fixtures, and form_coverage_check coverage assertions:

  • Binary32 to int32 & exponent (5): v_cvt_i32_f32_sdwa, v_cvt_u32_f32_sdwa, v_cvt_flr_i32_f32_sdwa, v_cvt_rpi_i32_f32_sdwa, v_frexp_exp_i32_f32_sdwa
  • Integer / byte / nibble to binary32 (7): v_cvt_f32_i32_sdwa, v_cvt_f32_u32_sdwa, v_cvt_f32_ubyte0_sdwa, v_cvt_f32_ubyte1_sdwa, v_cvt_f32_ubyte2_sdwa, v_cvt_f32_ubyte3_sdwa, v_cvt_off_f32_i4_sdwa
  • Packed RTZ export conversion (1): v_cvt_pkrtz_f16_f32_sdwa

Contracts & Semantics

  • Float-source forms (f32->int32, frexp_exp, pkrtz): Require whole-dword VGPR/SGPR sources (src0_sel:DWORD, plus src1_sel:DWORD and dst_sel:DWORD for pkrtz) with optional bit-31 abs/neg modifiers (|reg|, abs(reg), -reg, -|reg|), refusing sext(), clamp, and omod. f32->int32 and frexp_exp reuse the IEEE-754 saturating/special-value bit helpers (cvt_{i32,u32,flr_i32,rpi_i32}_f32, dpp_frexp_exp_i32_f32) with SDWA destination placement (BYTE_0..3, WORD_0..1, DWORD + UNUSED_PAD/UNUSED_PRESERVE); v_cvt_pkrtz_f16_f32_sdwa produces the (lo, hi) compressed-export pair and remains exempt from HALF_RTZ refusal.
  • Integer-source forms (int->f32): Accept VGPR/SGPR sources with BYTE_0..3, WORD_0..1, or DWORD selection, optional sext(), optional clamp (saturate(...)), and SDWA destination placement, refusing float modifiers and omod.
  • Shared refusals: All 13 refuse UNUSED_SEXT, UNUSED_PRESERVE on untracked/non-numeric destinations, pending scalar loads, outstanding samples, and non-entry EXEC masks.

Verification

  • Ran locally on Linux:
    • python3 tests/pixel_aot_check.py (including new check_sdwa_cvt_controls)
    • form_coverage_check: check_sdwa_cvt_forms (+13 forms in gfx1013.tsv and rdna2.tsv, unlowered neighbours excluded, single-opcode removal control), check_shader_records, check_sdwa_f16_forms, check_sdwa_int_extra_forms, check_sdwa_cmp_coverage
    • Independent Python simulation across all 3 integer-export fixtures (9 runtime rows, 13 mutations) + pkrtz RTZ discrimination check + manual inspection of generated HLSL
    • python3 tests/docs_links_check.py, python3 tests/bidi_controls_check.py, python3 tests/rdna2_tools_check.py (156 tests OK)
    • git merge-tree --write-tree --name-only origin/main HEAD and git diff --check origin/main
  • Runs in CI:
    • LLVM 15 pixel_aot_binary assembly/disassembly round-trips for all 4 SDWA_CVT_* fixtures
    • Windows D3D12 pixel_aot_sdwa_cvt_warp / pixel_aot_sdwa_cvt_hardware draws and all 16 mutations
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6614056093 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571). Originally posted by [KomaGuy](https://github.com/KomaGuy) on 2026-11-25T21:24:57Z. --- ## Summary Lowers **13 `SDWA` conversion, exponent, and packed-RTZ forms** in `tools/pixel_aot.py` (counted in both `docs/coverage/gfx1013.tsv` and `docs/coverage/rdna2.tsv`), with static refusal controls, `pixel_aot_sdwa_cvt_{warp,hardware}` draw tests, LLVM 15 `check_binary` fixtures, and `form_coverage_check` coverage assertions: - **Binary32 to int32 & exponent (5):** `v_cvt_i32_f32_sdwa`, `v_cvt_u32_f32_sdwa`, `v_cvt_flr_i32_f32_sdwa`, `v_cvt_rpi_i32_f32_sdwa`, `v_frexp_exp_i32_f32_sdwa` - **Integer / byte / nibble to binary32 (7):** `v_cvt_f32_i32_sdwa`, `v_cvt_f32_u32_sdwa`, `v_cvt_f32_ubyte0_sdwa`, `v_cvt_f32_ubyte1_sdwa`, `v_cvt_f32_ubyte2_sdwa`, `v_cvt_f32_ubyte3_sdwa`, `v_cvt_off_f32_i4_sdwa` - **Packed RTZ export conversion (1):** `v_cvt_pkrtz_f16_f32_sdwa` ## Contracts & Semantics - **Float-source forms (`f32->int32`, `frexp_exp`, `pkrtz`):** Require whole-dword VGPR/SGPR sources (`src0_sel:DWORD`, plus `src1_sel:DWORD` and `dst_sel:DWORD` for `pkrtz`) with optional bit-31 `abs`/`neg` modifiers (`|reg|`, `abs(reg)`, `-reg`, `-|reg|`), refusing `sext()`, `clamp`, and `omod`. `f32->int32` and `frexp_exp` reuse the IEEE-754 saturating/special-value bit helpers (`cvt_{i32,u32,flr_i32,rpi_i32}_f32`, `dpp_frexp_exp_i32_f32`) with SDWA destination placement (`BYTE_0..3`, `WORD_0..1`, `DWORD` + `UNUSED_PAD`/`UNUSED_PRESERVE`); `v_cvt_pkrtz_f16_f32_sdwa` produces the `(lo, hi)` compressed-export pair and remains exempt from `HALF_RTZ` refusal. - **Integer-source forms (`int->f32`):** Accept VGPR/SGPR sources with `BYTE_0..3`, `WORD_0..1`, or `DWORD` selection, optional `sext()`, optional `clamp` (`saturate(...)`), and SDWA destination placement, refusing float modifiers and `omod`. - **Shared refusals:** All 13 refuse `UNUSED_SEXT`, `UNUSED_PRESERVE` on untracked/non-numeric destinations, pending scalar loads, outstanding samples, and non-entry EXEC masks. ## Verification - **Ran locally on Linux:** - `python3 tests/pixel_aot_check.py` (including new `check_sdwa_cvt_controls`) - `form_coverage_check`: `check_sdwa_cvt_forms` (+13 forms in `gfx1013.tsv` and `rdna2.tsv`, unlowered neighbours excluded, single-opcode removal control), `check_shader_records`, `check_sdwa_f16_forms`, `check_sdwa_int_extra_forms`, `check_sdwa_cmp_coverage` - Independent Python simulation across all 3 integer-export fixtures (9 runtime rows, 13 mutations) + `pkrtz` RTZ discrimination check + manual inspection of generated HLSL - `python3 tests/docs_links_check.py`, `python3 tests/bidi_controls_check.py`, `python3 tests/rdna2_tools_check.py` (156 tests OK) - `git merge-tree --write-tree --name-only origin/main HEAD` and `git diff --check origin/main` - **Runs in CI:** - LLVM 15 `pixel_aot_binary` assembly/disassembly round-trips for all 4 `SDWA_CVT_*` fixtures - Windows D3D12 `pixel_aot_sdwa_cvt_warp` / `pixel_aot_sdwa_cvt_hardware` draws and all 16 mutations
tedin7 commented 2026-11-25 22:02:10 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:36:31Z.

Review: COMMENTED


Review of head 3bf6dd18 (comment only, Linux checks; the WARP draw test is run separately on Win2025).

Result: sound on code and fixtures, no blocking findings.

  • Change: 13 SDWA forms lowered in tools/pixel_aot.py (5 float-to-int/frexp_exp, 7 int-to-float, 1 pkrtz). The float-source forms reuse the existing e64/DPP bit helpers and SDWA destination placement; refusals cover src0_sel other than DWORD, sext on float sources, UNUSED_SEXT, clamp/omod on the float forms, pending loads and non-entry EXEC.
  • Test quality: draw-sdwa-cvt (pixel_aot_sdwa_cvt_{warp,hardware}) draws the translated shader and compares the readback with sdwa_cvt_reference, an independent Python model (not the lowering's own helpers), plus per-group mutations that must change the result. This is the readback-vs-CPU-reference test the repo asks for. check_sdwa_cvt_controls covers the static refusals.
  • I checked v_cvt_off_f32_i4 (signed nibble times 0.0625: -8 -> -0.5, 15 -> -0.0625) and the ubyte byte selection by hand against the reference.
  • Sibling tables: coverage tsv counts and form_coverage_check assertions are extended, with a single-opcode removal control. No other open or merged PR covers these opcodes (searched SDWA cvt frexp_exp pkrtz).

Commands run locally:

  • python3 tests/pixel_aot_check.py -> pass
  • python3 tests/docs_links_check.py -> ok (489 links); python3 tests/bidi_controls_check.py -> ok; git diff --check origin/main...HEAD -> clean
  • tests/form_coverage_check.py could not run on this Linux box (missing iced_x86); it is left to the Win2025 run.
  • Mutations: dropping the src0_sel:DWORD refusal fails check_sdwa_cvt_controls; dropping the float-source modifier refusal fails it too; dropping the UNUSED_SEXT refusal fails the existing movrel control.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6065308565 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#pullrequestreview-6065308565). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:36:31Z. **Review:** COMMENTED --- Review of head 3bf6dd18 (comment only, Linux checks; the WARP draw test is run separately on Win2025). Result: sound on code and fixtures, no blocking findings. - Change: 13 SDWA forms lowered in `tools/pixel_aot.py` (5 float-to-int/frexp_exp, 7 int-to-float, 1 pkrtz). The float-source forms reuse the existing e64/DPP bit helpers and SDWA destination placement; refusals cover src0_sel other than DWORD, sext on float sources, UNUSED_SEXT, clamp/omod on the float forms, pending loads and non-entry EXEC. - Test quality: `draw-sdwa-cvt` (`pixel_aot_sdwa_cvt_{warp,hardware}`) draws the translated shader and compares the readback with `sdwa_cvt_reference`, an independent Python model (not the lowering's own helpers), plus per-group mutations that must change the result. This is the readback-vs-CPU-reference test the repo asks for. `check_sdwa_cvt_controls` covers the static refusals. - I checked `v_cvt_off_f32_i4` (signed nibble times 0.0625: -8 -> -0.5, 15 -> -0.0625) and the ubyte byte selection by hand against the reference. - Sibling tables: coverage tsv counts and `form_coverage_check` assertions are extended, with a single-opcode removal control. No other open or merged PR covers these opcodes (searched `SDWA cvt frexp_exp pkrtz`). Commands run locally: - `python3 tests/pixel_aot_check.py` -> pass - `python3 tests/docs_links_check.py` -> ok (489 links); `python3 tests/bidi_controls_check.py` -> ok; `git diff --check origin/main...HEAD` -> clean - `tests/form_coverage_check.py` could not run on this Linux box (missing `iced_x86`); it is left to the Win2025 run. - Mutations: dropping the `src0_sel:DWORD` refusal fails `check_sdwa_cvt_controls`; dropping the float-source modifier refusal fails it too; dropping the UNUSED_SEXT refusal fails the existing movrel control. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 22:02:21 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T21:47:34Z.


Win2025 WARP result for head 572c3cca (head after updating with main; the PR's own diff is unchanged): the new draw test FAILS, so this PR cannot be merged yet.

  • pixel_aot_sdwa_cvt_warp and pixel_aot_sdwa_cvt_hardware (both run on the WARP adapter on this VM): Failed, same result on a rerun of the warp test. Group f32_to_int, case 2, pixel (0,0), channel 2: expected bits fffe0000, actual bits fffeffff.
  • Cause (from reading the code): channel 2 packs v_cvt_flr_i32_f32_sdwa into WORD_0. The lowering reuses the existing cvt_flr_i32_f32 helper (tools/pixel_aot.py, see its comment citing #1772): a NaN input gives 0x7fffffff (or 0x80000000 with the sign bit set). The test reference sdwa_cvt_reference (tests/pixel_aot_check.py, cvt_i32) returns 0 for every NaN, so its low word is 0000 while the shader writes ffff. cvt_i32/cvt_u32 for the other channels do pass, so only the flr (and probably rpi) NaN rule differs.
  • Suggested fix: make the reference follow the helper's documented rule for flr and rpi (NaN -> 0x7fffffff + sign bit, negative subnormal -> -1 for flr), keeping cvt_i32/cvt_u32 as they are, then rerun the test. If the intent is NaN -> 0 for the SDWA forms, the helper call has to change instead; that is a choice for the author and @R0Y00.
  • Everything else in the run passed: 189 of 191 selected tests (the 2 failures are the two tests above), including form_coverage_check and the other pixel_aot tests.

Commands run: x2w_pipe.py win2025 2571 --wait 7200 --keep-release --regex 'pixel_aot_sdwa_cvt_warp|form_coverage|^pixel_aot', then x2w_pipe.py win2025 2571 --wait 7200 --regex '^pixel_aot_sdwa_cvt_warp$'.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175544791 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#issuecomment-7175544791). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T21:47:34Z. --- Win2025 WARP result for head 572c3cca (head after updating with main; the PR's own diff is unchanged): the new draw test FAILS, so this PR cannot be merged yet. - `pixel_aot_sdwa_cvt_warp` and `pixel_aot_sdwa_cvt_hardware` (both run on the WARP adapter on this VM): `Failed`, same result on a rerun of the warp test. Group `f32_to_int`, case 2, pixel (0,0), channel 2: expected bits `fffe0000`, actual bits `fffeffff`. - Cause (from reading the code): channel 2 packs `v_cvt_flr_i32_f32_sdwa` into WORD_0. The lowering reuses the existing `cvt_flr_i32_f32` helper (`tools/pixel_aot.py`, see its comment citing #1772): a NaN input gives `0x7fffffff` (or `0x80000000` with the sign bit set). The test reference `sdwa_cvt_reference` (`tests/pixel_aot_check.py`, `cvt_i32`) returns 0 for every NaN, so its low word is `0000` while the shader writes `ffff`. `cvt_i32`/`cvt_u32` for the other channels do pass, so only the `flr` (and probably `rpi`) NaN rule differs. - Suggested fix: make the reference follow the helper's documented rule for `flr` and `rpi` (NaN -> `0x7fffffff + sign bit`, negative subnormal -> `-1` for `flr`), keeping `cvt_i32`/`cvt_u32` as they are, then rerun the test. If the intent is NaN -> 0 for the SDWA forms, the helper call has to change instead; that is a choice for the author and @R0Y00. - Everything else in the run passed: 189 of 191 selected tests (the 2 failures are the two tests above), including `form_coverage_check` and the other `pixel_aot` tests. Commands run: `x2w_pipe.py win2025 2571 --wait 7200 --keep-release --regex 'pixel_aot_sdwa_cvt_warp|form_coverage|^pixel_aot'`, then `x2w_pipe.py win2025 2571 --wait 7200 --regex '^pixel_aot_sdwa_cvt_warp$'`. AI-assisted; commands listed were executed locally.
KomaGuy commented 2026-11-25 22:02:23 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KomaGuy on 2026-11-25T21:52:20Z.


Thanks for catching that on Win2025 WARP! Fixed in 98821939: updated sdwa_cvt_reference (cvt_i32) in tests/pixel_aot_check.py to match the cvt_flr_i32_f32 / cvt_rpi_i32_f32 helper contract from #1772 (NaN -> 0x7fffffff + sign_bit, negative subnormal -> 0xffffffff for flr, keeping cvt_i32_f32/cvt_u32_f32 NaN -> 0). Row 2 channel 2 now expects 0xfffeffff, matching the WARP readback; re-verified tests/pixel_aot_check.py and form_coverage_check.check_sdwa_cvt_forms locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7175646012 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#issuecomment-7175646012). Originally posted by [KomaGuy](https://github.com/KomaGuy) on 2026-11-25T21:52:20Z. --- Thanks for catching that on Win2025 WARP! Fixed in 98821939: updated `sdwa_cvt_reference` (`cvt_i32`) in `tests/pixel_aot_check.py` to match the `cvt_flr_i32_f32` / `cvt_rpi_i32_f32` helper contract from #1772 (NaN -> `0x7fffffff + sign_bit`, negative subnormal -> `0xffffffff` for `flr`, keeping `cvt_i32_f32`/`cvt_u32_f32` NaN -> `0`). Row 2 channel 2 now expects `0xfffeffff`, matching the WARP readback; re-verified `tests/pixel_aot_check.py` and `form_coverage_check.check_sdwa_cvt_forms` locally.
tedin7 commented 2026-11-25 23:01:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:57:02Z.

Review: COMMENTED


Review of head 21e6bca1 (comment only, no approval).

What I checked:

  • The 13 SDWA forms in tools/pixel_aot.py reuse the existing e64/DPP bit helpers; float-source forms require src0_sel:DWORD, int-source forms accept sel/sext/clamp. Refusals (UNUSED_SEXT, sext on float, pending sample overlap, non-entry EXEC) are covered by check_sdwa_cvt_controls.
  • New pixel_aot_sdwa_cvt_{warp,hardware} CTest entries run a real draw and compare readback with the CPU reference, and are registered next to the sibling pixel_aot_f16_exact_extra_* tests.
  • No other open or merged PR covers these forms (searched all states).

Commands run in a clean worktree of this head:

  • python3 tests/pixel_aot_check.py -> exit 0
  • python3 tests/docs_links_check.py -> ok
  • python3 tests/bidi_controls_check.py -> ok
  • git diff --check origin/main...HEAD -> clean
  • Mutation 1: cvt_f32_ubyte1 shift 8u -> 0u: pixel_aot_check.py fails in check_sdwa_cvt_controls.
  • Mutation 2: disable the src0_sel:DWORD refusal: pixel_aot_check.py fails (control sub-check).
  • form_coverage_check.py could not run here (missing iced_x86); left to CI / Win2025.

Not a startup/game claim. Windows WARP receipt still to come from the pipeline.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6066123457 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#pullrequestreview-6066123457). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:57:02Z. **Review:** COMMENTED --- Review of head 21e6bca1 (comment only, no approval). What I checked: - The 13 SDWA forms in `tools/pixel_aot.py` reuse the existing e64/DPP bit helpers; float-source forms require `src0_sel:DWORD`, int-source forms accept sel/sext/clamp. Refusals (UNUSED_SEXT, sext on float, pending sample overlap, non-entry EXEC) are covered by `check_sdwa_cvt_controls`. - New `pixel_aot_sdwa_cvt_{warp,hardware}` CTest entries run a real draw and compare readback with the CPU reference, and are registered next to the sibling `pixel_aot_f16_exact_extra_*` tests. - No other open or merged PR covers these forms (searched all states). Commands run in a clean worktree of this head: - `python3 tests/pixel_aot_check.py` -> exit 0 - `python3 tests/docs_links_check.py` -> ok - `python3 tests/bidi_controls_check.py` -> ok - `git diff --check origin/main...HEAD` -> clean - Mutation 1: `cvt_f32_ubyte1` shift 8u -> 0u: `pixel_aot_check.py` fails in `check_sdwa_cvt_controls`. - Mutation 2: disable the `src0_sel:DWORD` refusal: `pixel_aot_check.py` fails (control sub-check). - `form_coverage_check.py` could not run here (missing `iced_x86`); left to CI / Win2025. Not a startup/game claim. Windows WARP receipt still to come from the pipeline. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 23:02:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T22:20:42Z.


Win2025 WARP result for head cb0a97d5 (head after updating with main; the PR's own diff is the same as 98821939, which fixed the NaN and negative-subnormal rules in sdwa_cvt_reference):

  • pixel_aot_sdwa_cvt_warp and pixel_aot_sdwa_cvt_hardware now pass (both on the WARP adapter).
  • Release /O2: ctest --preset release -R 'pixel_aot|form_coverage' = 191/191 passed. Dev preset: 191/191 passed. tests/form_coverage_check.py ok.
  • Linux: git diff --check, tests/docs_links_check.py, tests/bidi_controls_check.py ok.

Blocker: main moved again and this branch now conflicts. gh pr update-branch is refused ("conflicts"). @KomaGuy, please merge main into the branch and resolve the conflict (likely tools/pixel_aot.py / tests/pixel_aot_check.py). After that the PR only needs a re-run on the new head.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176244938 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#issuecomment-7176244938). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T22:20:42Z. --- Win2025 WARP result for head cb0a97d5 (head after updating with main; the PR's own diff is the same as 98821939, which fixed the NaN and negative-subnormal rules in `sdwa_cvt_reference`): - `pixel_aot_sdwa_cvt_warp` and `pixel_aot_sdwa_cvt_hardware` now pass (both on the WARP adapter). - Release `/O2`: `ctest --preset release -R 'pixel_aot|form_coverage'` = 191/191 passed. Dev preset: 191/191 passed. `tests/form_coverage_check.py` ok. - Linux: `git diff --check`, `tests/docs_links_check.py`, `tests/bidi_controls_check.py` ok. Blocker: main moved again and this branch now conflicts. `gh pr update-branch` is refused ("conflicts"). @KomaGuy, please merge main into the branch and resolve the conflict (likely `tools/pixel_aot.py` / `tests/pixel_aot_check.py`). After that the PR only needs a re-run on the new head. AI-assisted; commands listed were executed locally.
KomaGuy commented 2026-11-25 23:02:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by KomaGuy on 2026-11-25T22:56:52Z.


@tedin7 Merged origin/main (069e64fe) in 21e6bca1 and resolved the conflicts with #2578 in CMakeLists.txt, docs/experiments.md, tests/form_coverage_check.py, and tests/pixel_aot_check.py (also replaced the now-lowered v_min_f16_sdwa / v_frexp_mant_f16_sdwa entries in the unlowered-neighbour/refusal checks with genuinely unlowered SDWA ops).

Re-verified locally on Linux: tests/pixel_aot_check.py, form_coverage_check (check_shader_records, check_f16_exact_extra_forms, check_sdwa_cvt_forms), tests/docs_links_check.py, tests/bidi_controls_check.py, and tests/rdna2_tools_check.py all pass. Ready for a re-run on 21e6bca1.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7176970116 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#issuecomment-7176970116). Originally posted by [KomaGuy](https://github.com/KomaGuy) on 2026-11-25T22:56:52Z. --- @tedin7 Merged `origin/main` (`069e64fe`) in `21e6bca1` and resolved the conflicts with #2578 in `CMakeLists.txt`, `docs/experiments.md`, `tests/form_coverage_check.py`, and `tests/pixel_aot_check.py` (also replaced the now-lowered `v_min_f16_sdwa` / `v_frexp_mant_f16_sdwa` entries in the unlowered-neighbour/refusal checks with genuinely unlowered SDWA ops). Re-verified locally on Linux: `tests/pixel_aot_check.py`, `form_coverage_check` (`check_shader_records`, `check_f16_exact_extra_forms`, `check_sdwa_cvt_forms`), `tests/docs_links_check.py`, `tests/bidi_controls_check.py`, and `tests/rdna2_tools_check.py` all pass. Ready for a re-run on `21e6bca1`.
upstream-sync closed this pull request 2026-11-26 00:00:50 +00:00
tedin7 commented 2026-11-26 00:01:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:02:25Z.


Win2025 WARP receipt for head 0e7481de after updating with main.

Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit 0e7481defd3be223c04c9b3a9b15c87b659780d2:

  • Debug (--preset dev):
    • Build (cmake --build --preset dev -- -j 2): 26.52s (configure 3.28s)
    • Test (ctest --preset dev -R 'pixel_aot_sdwa_cvt_warp|pixel_aot_f16_exact_extra_warp' --parallel 4 --no-tests=error --output-on-failure): 2/2 passed (4.16s: pixel_aot_sdwa_cvt_warp 2.76s, pixel_aot_f16_exact_extra_warp 4.03s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release -- -j 2): 16.59s (configure 2.24s)
    • Test (ctest --preset release -R 'pixel_aot_sdwa_cvt_warp|pixel_aot_f16_exact_extra_warp' --parallel 4 --no-tests=error --output-on-failure): 2/2 passed (3.42s: pixel_aot_sdwa_cvt_warp 2.37s, pixel_aot_f16_exact_extra_warp 3.28s)
  • Windows Python checks: tests/form_coverage_check.py ok (15.0s), tests/mesh_clip_cull_check.py ok (5.7s), tests/mesh_dynamic_geometry_check.py ok (0.3s), tests/mesh_heap_sampler_check.py ok (0.9s), tests/pso_readiness_check.py ok (1.6s), tests/rdna2_tools_check.py ok (3.5s), tests/startup_gfx2hlsl_cmp16_check.py ok (0.4s), tests/startup_gfx2hlsl_cvt_pk_int16_check.py ok (0.4s), tests/startup_gfx2hlsl_f32_lg_check.py ok (1.6s), tests/startup_gfx2hlsl_f32_nan_check.py ok (6.5s), tests/startup_gfx2hlsl_sop2_complement_check.py ok (8.0s), tests/startup_gfx2hlsl_vopc_sdwa_check.py ok (6.1s), tests/startup_image_load_d16_check.py ok (1.5s), tests/startup_image_sample_a16_check.py ok (0.3s), tests/vk_offscreen.py ok (1.9s)
  • sccache: 32/169 hits; wall 119.9s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7177076317 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2571#issuecomment-7177076317). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T23:02:25Z. --- Win2025 WARP receipt for head 0e7481de after updating with main. Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `0e7481defd3be223c04c9b3a9b15c87b659780d2`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev -- -j 2`): `26.52s` (configure `3.28s`) - Test (`ctest --preset dev -R 'pixel_aot_sdwa_cvt_warp|pixel_aot_f16_exact_extra_warp' --parallel 4 --no-tests=error --output-on-failure`): **2/2 passed** (`4.16s`: `pixel_aot_sdwa_cvt_warp` `2.76s`, `pixel_aot_f16_exact_extra_warp` `4.03s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release -- -j 2`): `16.59s` (configure `2.24s`) - Test (`ctest --preset release -R 'pixel_aot_sdwa_cvt_warp|pixel_aot_f16_exact_extra_warp' --parallel 4 --no-tests=error --output-on-failure`): **2/2 passed** (`3.42s`: `pixel_aot_sdwa_cvt_warp` `2.37s`, `pixel_aot_f16_exact_extra_warp` `3.28s`) - **Windows Python checks**: `tests/form_coverage_check.py` ok (`15.0s`), `tests/mesh_clip_cull_check.py` ok (`5.7s`), `tests/mesh_dynamic_geometry_check.py` ok (`0.3s`), `tests/mesh_heap_sampler_check.py` ok (`0.9s`), `tests/pso_readiness_check.py` ok (`1.6s`), `tests/rdna2_tools_check.py` ok (`3.5s`), `tests/startup_gfx2hlsl_cmp16_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_cvt_pk_int16_check.py` ok (`0.4s`), `tests/startup_gfx2hlsl_f32_lg_check.py` ok (`1.6s`), `tests/startup_gfx2hlsl_f32_nan_check.py` ok (`6.5s`), `tests/startup_gfx2hlsl_sop2_complement_check.py` ok (`8.0s`), `tests/startup_gfx2hlsl_vopc_sdwa_check.py` ok (`6.1s`), `tests/startup_image_load_d16_check.py` ok (`1.5s`), `tests/startup_image_sample_a16_check.py` ok (`0.3s`), `tests/vk_offscreen.py` ok (`1.9s`) - `sccache`: 32/169 hits; wall `119.9s` AI-assisted; commands listed were executed locally.
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!2563
No description provided.