tests: draw all integer predicate shader groups on one device #2533

Merged
RavenCurseBurg merged 2 commits from upstream-pr/2541 into main 2026-11-25 20:42:16 +00:00
RavenCurseBurg commented 2026-11-25 20:20:18 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T20:20:18Z.


Change

Refs #448. This is the first existing pixel fixture to use the multi-shader operation from #2525. The 32-bit integer predicate test now compiles its eight DXIL files, then submits all 33 original shader/reference pairs to one renderer process. The signed-against-unsigned control remains in its original position and the following reference must still pass.

Each compiler output gets a distinct name. Passing input basenames with the temporary directory as the renderer's working directory keeps the Windows command line short. The batch caller checks the index and status of every draw and propagates a renderer capability skip (77). An unexpected result identifies the shader and reference that produced it.

Verification

Compared the exact PR head e5484d6c70a711c1a0335d521a8a12b3abab07f6 against its parent 5123cc6d0cd9c7730d39e9d989f38dc060a987d1. Both revisions used the same renderer and DXC for each comparison.

  • All eight HLSL inputs, every ordered DXIL/reference byte hash, all 33 actual case statuses and all 49 subgroup forms matched. The original path launched the renderer eight times and the new path once. Both observed 32 passes and one intentional mismatch.
  • Windows Server 2025 Debug WARP passed the full pixel_aot_comparisons_warp entry and all three focused batch/diagnostic entries, without capability skips. The normal comparisons test recorded 160 forms. Exact-head Windows build, CTest and A/B receipts
  • On Windows 11 26100.9711 I repeated the exact parent/head comparison on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579), and WARP (10.0.26100.9711), with DXC 1.9.2609.5 and the debug layer unavailable. The compiler inputs, shader/reference bytes, 33 outcomes and 49 forms matched on each adapter. The complete draw-comparisons invocation passed on all three and produced the same 160-form record as Server 2025.
  • Seven Python-side protocol controls covered unexpected statuses, missing or misnumbered rows, and inconsistent exit codes. An unavailable renderer invoked through a relative name propagated 77. python -B tests/docs_links_check.py passed for 19 documents and 479 links. git diff --check HEAD^ HEAD passed.
ctest --preset dev -j 1 --no-tests=error -V -R '^(pixel_aot_comparisons_warp|pixel_batch_(pairs|debug|removal)_warp)$'
python -B tests/pyc_main.py pixel_aot_check draw-comparisons $dxc $renderer hardware
python -B tests/pyc_main.py pixel_aot_check draw-comparisons $dxc $renderer warp

The renderer-only A/B in #2525 used the same 33 draws and three warm runs. Intel UHD 770 went from 2.76–3.01 s to 0.59–0.71 s, RTX 4060 from 4.22–5.27 s to 1.60–1.77 s, and WARP from 0.80–0.86 s to about 0.21 s. Those intervals exclude the eight DXC compiles. Measurement and reproduction script

AI-assisted with Codex (session label GPT-6.2 Astra xhigh).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6612975973 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2541). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T20:20:18Z. --- ## Change Refs #448. This is the first existing pixel fixture to use the multi-shader operation from #2525. The 32-bit integer predicate test now compiles its eight DXIL files, then submits all 33 original shader/reference pairs to one renderer process. The signed-against-unsigned control remains in its original position and the following reference must still pass. Each compiler output gets a distinct name. Passing input basenames with the temporary directory as the renderer's working directory keeps the Windows command line short. The batch caller checks the index and status of every draw and propagates a renderer capability skip (77). An unexpected result identifies the shader and reference that produced it. ## Verification Compared the exact PR head `e5484d6c70a711c1a0335d521a8a12b3abab07f6` against its parent `5123cc6d0cd9c7730d39e9d989f38dc060a987d1`. Both revisions used the same renderer and DXC for each comparison. - All eight HLSL inputs, every ordered DXIL/reference byte hash, all 33 actual case statuses and all 49 subgroup forms matched. The original path launched the renderer eight times and the new path once. Both observed 32 passes and one intentional mismatch. - Windows Server 2025 Debug WARP passed the full `pixel_aot_comparisons_warp` entry and all three focused batch/diagnostic entries, without capability skips. The normal comparisons test recorded 160 forms. [Exact-head Windows build, CTest and A/B receipts](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45693327568) - On Windows 11 26100.9711 I repeated the exact parent/head comparison on Intel UHD 770 (32.0.101.5973), RTX 4060 (32.0.15.9579), and WARP (10.0.26100.9711), with DXC 1.9.2609.5 and the debug layer unavailable. The compiler inputs, shader/reference bytes, 33 outcomes and 49 forms matched on each adapter. The complete `draw-comparisons` invocation passed on all three and produced the same 160-form record as Server 2025. - Seven Python-side protocol controls covered unexpected statuses, missing or misnumbered rows, and inconsistent exit codes. An unavailable renderer invoked through a relative name propagated 77. `python -B tests/docs_links_check.py` passed for 19 documents and 479 links. `git diff --check HEAD^ HEAD` passed. ```powershell ctest --preset dev -j 1 --no-tests=error -V -R '^(pixel_aot_comparisons_warp|pixel_batch_(pairs|debug|removal)_warp)$' python -B tests/pyc_main.py pixel_aot_check draw-comparisons $dxc $renderer hardware python -B tests/pyc_main.py pixel_aot_check draw-comparisons $dxc $renderer warp ``` The renderer-only A/B in #2525 used the same 33 draws and three warm runs. Intel UHD 770 went from 2.76–3.01 s to 0.59–0.71 s, RTX 4060 from 4.22–5.27 s to 1.60–1.77 s, and WARP from 0.80–0.86 s to about 0.21 s. Those intervals exclude the eight DXC compiles. [Measurement and reproduction script](https://github.com/R0Y00/Xbox2Windows/pull/2525) AI-assisted with Codex (session label `GPT-6.2 Astra xhigh`).
upstream-sync closed this pull request 2026-11-25 21:01:21 +00:00
tedin7 commented 2026-11-25 21:01:21 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T20:22:00Z.

Review: COMMENTED


Review of head e5484d6c (comment only).

What I checked:

  • check_int_predicate_draws now gives each of the 8 compiled shaders its own .cso name and sends all 33 shader/case pairs in one --check-pixel-pairs call. The old per-shader .cso reuse would have broken this, so the rename is needed and correct.
  • pixel_batch_statuses is split out of run_pixel_batch_statuses with the same checks (exit 77 propagates, line prefix, status set, count, exit code equals "any mismatch"). The old caller keeps its behavior.
  • The expected-vs-actual loop uses zip after the count check, so a short or long reply cannot hide a case. The failure message names the shader and case.
  • The intentional signed-vs-unsigned mismatch keeps its position (cases.insert(-1, ...)), so the following reference is still checked after it.
  • --check-pixel-pairs exists on main (tests/offscreen_check.cpp, tests/pixel_batch_pairs_check.py), so no dependency is missing. Docs line counts in docs/experiments.md match the new "one renderer call" wording.
  • Sibling tests still call the old per-shader helper; the PR says it is the first user, and that is consistent with the diff.

Commands run (Linux, in a worktree of the exact head):

  • python3 tests/docs_links_check.py -> pass (479 links)
  • python3 tests/bidi_controls_check.py -> pass
  • git diff --check origin/main...HEAD -> clean

Not run on Linux: the renderer and DXC are Windows-only, so I did not mutate the test here. The Windows run on this head follows.

No blocking findings.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6064407625 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2541#pullrequestreview-6064407625). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T20:22:00Z. **Review:** COMMENTED --- Review of head e5484d6c (comment only). What I checked: - `check_int_predicate_draws` now gives each of the 8 compiled shaders its own `.cso` name and sends all 33 shader/case pairs in one `--check-pixel-pairs` call. The old per-shader `.cso` reuse would have broken this, so the rename is needed and correct. - `pixel_batch_statuses` is split out of `run_pixel_batch_statuses` with the same checks (exit 77 propagates, line prefix, status set, count, exit code equals "any mismatch"). The old caller keeps its behavior. - The expected-vs-actual loop uses `zip` after the count check, so a short or long reply cannot hide a case. The failure message names the shader and case. - The intentional signed-vs-unsigned mismatch keeps its position (`cases.insert(-1, ...)`), so the following reference is still checked after it. - `--check-pixel-pairs` exists on main (`tests/offscreen_check.cpp`, `tests/pixel_batch_pairs_check.py`), so no dependency is missing. Docs line counts in `docs/experiments.md` match the new "one renderer call" wording. - Sibling tests still call the old per-shader helper; the PR says it is the first user, and that is consistent with the diff. Commands run (Linux, in a worktree of the exact head): - `python3 tests/docs_links_check.py` -> pass (479 links) - `python3 tests/bidi_controls_check.py` -> pass - `git diff --check origin/main...HEAD` -> clean Not run on Linux: the renderer and DXC are Windows-only, so I did not mutate the test here. The Windows run on this head follows. No blocking findings. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-25 21:01:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T20:24:08Z.


Win2025 WARP run on head e5484d6c did not pass, so no receipt and no merge from me.

  • Ran x2w_pipe.py win2025 2541 --wait 7200 --keep-release twice (second time with --regex pixel_aot). Both runs failed the same way.
  • Failing step: the automatic Python check tests/mesh_entry_check.py (rc=1 after about 0.3 s). The other six automatic checks passed. No ctest phase ran (0/2).
  • This PR only touches tests/pixel_aot_check.py and docs/experiments.md; it does not touch the mesh files. Run on Linux without arguments, mesh_entry_check.py stops immediately at sys.argv[1] (IndexError, line 1045), which fits the 0.3 s failure. This looks like how the pipeline calls that check, not the PR, but I did not prove it on main.
  • The run with pixel_aot therefore never reached the integer predicate comparison. The PR's own Windows result (author's receipts) is unverified by me.
  • GitHub CI on this head: Windows build and test, gfx1013 fixtures and Linux Python checks all passed.

Code review on this head stays as posted: no blocking findings.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173617043 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2541#issuecomment-7173617043). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T20:24:08Z. --- Win2025 WARP run on head e5484d6c did not pass, so no receipt and no merge from me. - Ran `x2w_pipe.py win2025 2541 --wait 7200 --keep-release` twice (second time with `--regex pixel_aot`). Both runs failed the same way. - Failing step: the automatic Python check `tests/mesh_entry_check.py` (rc=1 after about 0.3 s). The other six automatic checks passed. No ctest phase ran (0/2). - This PR only touches `tests/pixel_aot_check.py` and `docs/experiments.md`; it does not touch the mesh files. Run on Linux without arguments, `mesh_entry_check.py` stops immediately at `sys.argv[1]` (IndexError, line 1045), which fits the 0.3 s failure. This looks like how the pipeline calls that check, not the PR, but I did not prove it on main. - The run with `pixel_aot` therefore never reached the integer predicate comparison. The PR's own Windows result (author's receipts) is unverified by me. - GitHub CI on this head: Windows build and test, gfx1013 fixtures and Linux Python checks all passed. Code review on this head stays as posted: no blocking findings. AI-assisted; commands listed were executed locally.
RavenCurseBurg commented 2026-11-25 21:01:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T20:25:48Z.


I reproduced the automatic Python-step failure on both the PR's main parent 5123cc6d and the PR head e5484d6c, on Windows 11. On each checkout, python -B tests/mesh_entry_check.py exits 1 at line 1045 (sys.argv[1], IndexError). The file has the identical Git blob c4ef7bdef05d99b6f2170435d570c6be696cc7ab on both commits. Both documented device-free invocations below exit 0 on both commits.

python -B tests/mesh_entry_check.py skipped
python -B tests/mesh_entry_check.py flat-scratch

CMake registers those as mesh_entry_skipped_scalar_cpu and mesh_entry_flat_scratch_cpu. The same --py-checks override you used on #2434 can omit the argumentless invocation and let CTest run the relevant entries. A focused filter is ^(mesh_entry_(skipped_scalar|flat_scratch)_cpu|pixel_aot_comparisons_warp)$.

The clean Debug Windows Server 2025 build at this head reached pixel_aot_comparisons_warp and passed in 11.83 s, with all four selected CTests passing. It also ran the parent and head with the same renderer and compared all 33 results, both input byte streams and the 49 subgroup forms. Build, JUnit and comparison records

I also ran the argumentless check and both registered CPU modes on Windows Server 2025 at the two revisions above. They reproduced the Windows 11 results. A clean Release build at e5484d6c passed both registered mesh CPU tests and the complete predicate WARP test (3/3). The WARP test took 8.84 s. The Release parent/head comparison also matched all 33 draws and 49 forms. Release reproduction and JUnit

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7173658499 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2541#issuecomment-7173658499). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T20:25:48Z. --- I reproduced the automatic Python-step failure on both the PR's main parent `5123cc6d` and the PR head `e5484d6c`, on Windows 11. On each checkout, `python -B tests/mesh_entry_check.py` exits 1 at line 1045 (`sys.argv[1]`, `IndexError`). The file has the identical Git blob `c4ef7bdef05d99b6f2170435d570c6be696cc7ab` on both commits. Both documented device-free invocations below exit 0 on both commits. ```powershell python -B tests/mesh_entry_check.py skipped python -B tests/mesh_entry_check.py flat-scratch ``` CMake registers those as `mesh_entry_skipped_scalar_cpu` and `mesh_entry_flat_scratch_cpu`. The same `--py-checks` override you used on #2434 can omit the argumentless invocation and let CTest run the relevant entries. A focused filter is `^(mesh_entry_(skipped_scalar|flat_scratch)_cpu|pixel_aot_comparisons_warp)$`. The clean Debug Windows Server 2025 build at this head reached `pixel_aot_comparisons_warp` and passed in 11.83 s, with all four selected CTests passing. It also ran the parent and head with the same renderer and compared all 33 results, both input byte streams and the 49 subgroup forms. [Build, JUnit and comparison records](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45693327568) I also ran the argumentless check and both registered CPU modes on Windows Server 2025 at the two revisions above. They reproduced the Windows 11 results. A clean Release build at `e5484d6c` passed both registered mesh CPU tests and the complete predicate WARP test (3/3). The WARP test took 8.84 s. The Release parent/head comparison also matched all 33 draws and 49 forms. [Release reproduction and JUnit](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45695001100)
tedin7 commented 2026-11-25 21:01:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T20:41:37Z.


Win2025 WARP receipt for head 6bef18ef after updating with main (full build; the first fast-path run used a stale renderer and is superseded).

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

  • Debug (--preset dev):
    • Build (cmake --build --preset dev -- -j 2): 242.90s (configure 2.39s)
    • Test (ctest --preset dev -R 'pixel_aot_comparisons_warp|pixel_aot_.*batch.*|pixel_aot_int_pred.*' --parallel 4 --no-tests=error --output-on-failure): 1/1 passed (6.71s: pixel_aot_comparisons_warp 6.58s)
  • Release /O2 (--preset release):
    • Build (cmake --build --preset release -- -j 2): 89.16s (configure 2.09s)
    • Test (ctest --preset release -R 'pixel_aot_comparisons_warp|pixel_aot_.*batch.*|pixel_aot_int_pred.*' --parallel 4 --no-tests=error --output-on-failure): 1/1 passed (7.13s: pixel_aot_comparisons_warp 7.00s)
  • Windows Python checks: tests/form_coverage_check.py ok (14.5s), tests/mesh_clip_cull_check.py ok (4.4s), tests/mesh_heap_sampler_check.py ok (0.7s), tests/pso_readiness_check.py ok (0.9s), tests/rdna2_tools_check.py ok (2.7s), tests/vk_offscreen.py ok (1.4s)
  • sccache: 239/473 hits; wall 377.5s

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7174049157 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2541#issuecomment-7174049157). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-25T20:41:37Z. --- Win2025 WARP receipt for head 6bef18ef after updating with main (full build; the first fast-path run used a stale renderer and is superseded). Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit `6bef18ef4812d8c48a52ea5bc8959173d387e31d`: - **Debug (`--preset dev`)**: - Build (`cmake --build --preset dev -- -j 2`): `242.90s` (configure `2.39s`) - Test (`ctest --preset dev -R 'pixel_aot_comparisons_warp|pixel_aot_.*batch.*|pixel_aot_int_pred.*' --parallel 4 --no-tests=error --output-on-failure`): **1/1 passed** (`6.71s`: `pixel_aot_comparisons_warp` `6.58s`) - **Release `/O2` (`--preset release`)**: - Build (`cmake --build --preset release -- -j 2`): `89.16s` (configure `2.09s`) - Test (`ctest --preset release -R 'pixel_aot_comparisons_warp|pixel_aot_.*batch.*|pixel_aot_int_pred.*' --parallel 4 --no-tests=error --output-on-failure`): **1/1 passed** (`7.13s`: `pixel_aot_comparisons_warp` `7.00s`) - **Windows Python checks**: `tests/form_coverage_check.py` ok (`14.5s`), `tests/mesh_clip_cull_check.py` ok (`4.4s`), `tests/mesh_heap_sampler_check.py` ok (`0.7s`), `tests/pso_readiness_check.py` ok (`0.9s`), `tests/rdna2_tools_check.py` ok (`2.7s`), `tests/vk_offscreen.py` ok (`1.4s`) - `sccache`: 239/473 hits; wall `377.5s` 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!2533
No description provided.