tests: run the pixel_aot comparison draws as their own CTest entry #825
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/831"
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 roansystemlabs on 2026-11-23T09:31:15Z.
Change
pixel_aot_predicate_rounding_hardwareis at or past its 60 s timeout on some adapters: in #448, an RTX 3080 with the debug layer passed in 56.4 s once and hit the timeout twice. Its cases already go throughrun_pixel_batch()since #697, but the mode has grown back to 80 renderer launches and 284 cases.Measured on an idle RTX 3070 with the D3D12 debug layer (per-phase table in #448): each
offscreen_checklaunch costs about 0.25 s of start-up and each case about 0.03 s, so about 20 s of the 31-33 s (≈64 %) is renderer start-up; DXC is under 10 % and Python under 0.5 s.draw-blend-scalaranddraw-corehave the same per-launch and per-case cost; this mode is just the largest of the three.This PR moves the comparison and class draws into a new mode,
draw-comparisons, registered aspixel_aot_comparisons_{hardware,warp}:check_f16_compare_draws,check_class_draw,check_predicate_draws,check_int_predicate_draws,check_unsigned_less_than_draws,check_int16_predicate_drawsandcheck_sdwa_predicate_drawsare called fromcheck_comparison_draws()instead ofcheck_predicate_and_rounding_draws(). The helpers themselves are unchanged.pixel_aot_cmp64_*have) and their ownFORM_COVERAGE_RECORDfile.docs/experiments.mdnames the new mode for the 16-bit comparison draws and records the measurement.No case, expected value or mismatch control changes; only the CTest entry that runs them moves. A per-process pipeline cache or a multi-shader batch in the renderer would cut start-up for every mode, but changes the renderer and its batch format, so I left it for a separate follow-up.
Refs #448
Verification
Base
325fe1e, Windows 11 build 26200, MSVC 19.44, Windows SDK 10.0.26100 DXC,devpreset. RTX 3070 (10de:2484, driver 32.0.16.2101) and WARP (10.0.26100.9818), bothdebug_layer=enabled. Idle machine (CPU 7-15 % and GPU 3-7 % before each run), serial runs on the same build.main325fe1e(one entry)All runs passed, with no skips or timeouts, and
debug_errors=0 debug_warnings=0on every printed draw. The third WARP run onmain(12.36 s) overlapped a short CPU spike to 60 % from another process; the hardware entry of that run was not affected. Each hardware entry goes from 53-55 % of its 60 s limit to 25-28 %.Same work before and after: wrapping
subprocess.runand hashing every.hlsl,.csoand.caseargument,draw-predicate-roundingon325fe1eanddraw-predicate-rounding+draw-comparisonson this branch make the same 80 renderer calls (46 + 34) with identical shader and case bytes, exit codes and per-casepass/mismatchstatuses (21 expected mismatches before, 6 + 15 after), and compile the same 84 HLSL sources (45 + 39), on both the RTX 3070 and WARP. The union of the two entries'FORM_COVERAGE_RECORDfiles equals the record of the single entry on325fe1e(212 first words), on both adapters.Also run on this branch:
ctest --preset dev --no-tests=error -R '^pixel_aot_': 72/72 passed in 322.10 s, no skips or timeouts. The largest hardware entries in that run:pixel_aot_compare_hardware39.74 s,pixel_aot_hardware28.03 s,pixel_aot_blend_scalar_hardware25.77 s,pixel_aot_e64_hardware21.98 s,pixel_aot_predicate_rounding_hardware18.91 s,pixel_aot_comparisons_hardware15.27 s.python -B tests/pixel_aot_check.py(controls),tests/form_coverage_check.pyandtests/docs_links_check.py: all exit 0.git diff --check: clean.git merge-treeagainst each of the 39 open pull requests that touchtests/pixel_aot_check.py,CMakeLists.txtordocs/experiments.md: none conflicts with this branch unless it already conflicts withmain.Evidence and follow-up
No new fixtures. The timings depend on the adapter, driver, debug layer and machine load. The split roughly halves the work in each entry; the adapters near the limit in #448 should land around half of their previous time, but I have not measured them.
Checklist
AI-assisted: yes.