tests: draw all integer predicate shader groups on one device #2533
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2541"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
e5484d6c70a711c1a0335d521a8a12b3abab07f6against its parent5123cc6d0cd9c7730d39e9d989f38dc060a987d1. Both revisions used the same renderer and DXC for each comparison.pixel_aot_comparisons_warpentry 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 receiptsdraw-comparisonsinvocation passed on all three and produced the same 160-form record as Server 2025.python -B tests/docs_links_check.pypassed for 19 documents and 479 links.git diff --check HEAD^ HEADpassed.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).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_drawsnow gives each of the 8 compiled shaders its own.csoname and sends all 33 shader/case pairs in one--check-pixel-pairscall. The old per-shader.csoreuse would have broken this, so the rename is needed and correct.pixel_batch_statusesis split out ofrun_pixel_batch_statuseswith the same checks (exit 77 propagates, line prefix, status set, count, exit code equals "any mismatch"). The old caller keeps its behavior.zipafter the count check, so a short or long reply cannot hide a case. The failure message names the shader and case.cases.insert(-1, ...)), so the following reference is still checked after it.--check-pixel-pairsexists on main (tests/offscreen_check.cpp,tests/pixel_batch_pairs_check.py), so no dependency is missing. Docs line counts indocs/experiments.mdmatch the new "one renderer call" wording.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-> passgit diff --check origin/main...HEAD-> cleanNot 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.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T20:24:08Z.
Win2025 WARP run on head
e5484d6cdid not pass, so no receipt and no merge from me.x2w_pipe.py win2025 2541 --wait 7200 --keep-releasetwice (second time with--regex pixel_aot). Both runs failed the same way.tests/mesh_entry_check.py(rc=1 after about 0.3 s). The other six automatic checks passed. No ctest phase ran (0/2).tests/pixel_aot_check.pyanddocs/experiments.md; it does not touch the mesh files. Run on Linux without arguments,mesh_entry_check.pystops immediately atsys.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.pixel_aottherefore never reached the integer predicate comparison. The PR's own Windows result (author's receipts) is unverified by me.Code review on this head stays as posted: no blocking findings.
AI-assisted; commands listed were executed locally.
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
5123cc6dand the PR heade5484d6c, on Windows 11. On each checkout,python -B tests/mesh_entry_check.pyexits 1 at line 1045 (sys.argv[1],IndexError). The file has the identical Git blobc4ef7bdef05d99b6f2170435d570c6be696cc7abon both commits. Both documented device-free invocations below exit 0 on both commits.CMake registers those as
mesh_entry_skipped_scalar_cpuandmesh_entry_flat_scratch_cpu. The same--py-checksoverride 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_warpand 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 recordsI 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
e5484d6cpassed 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 JUnitImported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T20:41:37Z.
Win2025 WARP receipt for head
6bef18efafter 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:--preset dev):cmake --build --preset dev -- -j 2):242.90s(configure2.39s)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_warp6.58s)/O2(--preset release):cmake --build --preset release -- -j 2):89.16s(configure2.09s)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_warp7.00s)tests/form_coverage_check.pyok (14.5s),tests/mesh_clip_cull_check.pyok (4.4s),tests/mesh_heap_sampler_check.pyok (0.7s),tests/pso_readiness_check.pyok (0.9s),tests/rdna2_tools_check.pyok (2.7s),tests/vk_offscreen.pyok (1.4s)sccache: 239/473 hits; wall377.5sAI-assisted; commands listed were executed locally.