tests: split the pixel_aot draw-core CTest #1042

Merged
romn4rch merged 2 commits from upstream-pr/1049 into main 2026-11-23 23:39:48 +00:00
romn4rch commented 2026-11-23 23:14:39 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by romn4rch on 2026-11-23T23:14:39Z.


Change

The pixel_aot_hardware draw-core CTest was nearing its 60-second timeout on an RTX 3050 Laptop GPU. Move the existing DPP, VOP3P, bitwise, FMA-mix and dot-product draw helpers into draw-core-vector, registered as pixel_aot_core_vector_{hardware,warp} with the same 60-second timeout and a separate form-coverage record. Existing cases, expected-mismatch controls and the full draw mode remain unchanged.

Refs #448

Verification

Commit: df4cb1b.

  • cmake --preset dev and cmake --build --preset dev --target offscreen_check: passed.
  • ctest --preset dev -N -R '^pixel_aot_(hardware|warp|core_vector_(hardware|warp))$': found all four expected entries.
  • ctest --preset dev --no-tests=error -R '^pixel_aot_(warp|core_vector_warp)$' -V: passed 2/2 on Windows build 26300, Microsoft Basic Render Driver WARP (driver 10.0.26100.10068), debug layer enabled. pixel_aot_warp: 32.93 s; pixel_aot_core_vector_warp: 9.95 s; total 42.94 s.
  • An instrumented WARP comparison of pre-split draw-core with both split selections matched all 72 renderer calls and 70 DXC calls, shader/case hashes, and per-case outcomes. The split coverage-record union matched the original 710 forms.
  • .\\out\\pe-env\\Scripts\\python.exe -B tests\\pixel_aot_check.py: passed.
  • .\\out\\pe-env\\Scripts\\python.exe -B tests\\form_coverage_check.py: passed.
  • .\\out\\pe-env\\Scripts\\python.exe -B tests\\docs_links_check.py: passed (13 Markdown files, 223 links).
  • git diff --check: clean.

No physical GPU was run; hardware timeout headroom remains unmeasured.

Evidence and follow-up

No fixtures or dependencies were added. docs/experiments.md records the split and reproduction commands. This separates the test work but does not reduce aggregate device creation; device reuse remains a separate follow-up under #448.

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture. (No fixture was added; existing expected-mismatch controls are unchanged.)
  • I updated README/docs when a capability or build requirement changed. (Updated docs/experiments.md; no README or build requirement change.)
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted: yes.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6570808057 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1049). Originally posted by [romn4rch](https://github.com/romn4rch) on 2026-11-23T23:14:39Z. --- ## Change The `pixel_aot_hardware` draw-core CTest was nearing its 60-second timeout on an RTX 3050 Laptop GPU. Move the existing DPP, VOP3P, bitwise, FMA-mix and dot-product draw helpers into `draw-core-vector`, registered as `pixel_aot_core_vector_{hardware,warp}` with the same 60-second timeout and a separate form-coverage record. Existing cases, expected-mismatch controls and the full `draw` mode remain unchanged. Refs #448 ## Verification Commit: `df4cb1b`. - `cmake --preset dev` and `cmake --build --preset dev --target offscreen_check`: passed. - `ctest --preset dev -N -R '^pixel_aot_(hardware|warp|core_vector_(hardware|warp))$'`: found all four expected entries. - `ctest --preset dev --no-tests=error -R '^pixel_aot_(warp|core_vector_warp)$' -V`: passed 2/2 on Windows build 26300, Microsoft Basic Render Driver WARP (driver 10.0.26100.10068), debug layer enabled. `pixel_aot_warp`: 32.93 s; `pixel_aot_core_vector_warp`: 9.95 s; total 42.94 s. - An instrumented WARP comparison of pre-split `draw-core` with both split selections matched all 72 renderer calls and 70 DXC calls, shader/case hashes, and per-case outcomes. The split coverage-record union matched the original 710 forms. - `.\\out\\pe-env\\Scripts\\python.exe -B tests\\pixel_aot_check.py`: passed. - `.\\out\\pe-env\\Scripts\\python.exe -B tests\\form_coverage_check.py`: passed. - `.\\out\\pe-env\\Scripts\\python.exe -B tests\\docs_links_check.py`: passed (13 Markdown files, 223 links). - `git diff --check`: clean. No physical GPU was run; hardware timeout headroom remains unmeasured. ## Evidence and follow-up No fixtures or dependencies were added. `docs/experiments.md` records the split and reproduction commands. This separates the test work but does not reduce aggregate device creation; device reuse remains a separate follow-up under #448. ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. (No fixture was added; existing expected-mismatch controls are unchanged.) - [x] I updated README/docs when a capability or build requirement changed. (Updated `docs/experiments.md`; no README or build requirement change.) - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted: yes.
upstream-sync closed this pull request 2026-11-24 06:46:01 +00:00
R0Y00 commented 2026-11-24 06:49:51 +00:00 (Migrated from github.com)

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


I resolved the CMake conflict in 3dc27c3 by retaining both the draw-core-vector and #421 DPP conversion registrations. The six moved draw helpers and their expected-mismatch controls are preserved.

Windows 26200.9974, Release, debug layer enabled: on the RTX 4060 Laptop (32.0.16.1656), the core and vector entries passed in 21.40 and 15.74 s. On WARP (10.0.26100.9818), they passed in 10.37 and 4.59 s. The separate DPP conversion entry passed on both, for 6/6 overall. Both vector entries wrote their own coverage record. The timings cover these adapters and this build.

Command: ctest --preset release --no-tests=error -R '^pixel_aot_(warp|hardware|core_vector_(warp|hardware)|dpp_cvt_(warp|hardware))$' --output-on-failure

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7116936611 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1049#issuecomment-7116936611). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T23:25:23Z. --- I resolved the CMake conflict in 3dc27c3 by retaining both the draw-core-vector and #421 DPP conversion registrations. The six moved draw helpers and their expected-mismatch controls are preserved. Windows 26200.9974, Release, debug layer enabled: on the RTX 4060 Laptop (32.0.16.1656), the core and vector entries passed in 21.40 and 15.74 s. On WARP (10.0.26100.9818), they passed in 10.37 and 4.59 s. The separate DPP conversion entry passed on both, for 6/6 overall. Both vector entries wrote their own coverage record. The timings cover these adapters and this build. Command: ctest --preset release --no-tests=error -R '^pixel_aot_(warp|hardware|core_vector_(warp|hardware)|dpp_cvt_(warp|hardware))$' --output-on-failure
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!1042
No description provided.