tests: batch heap-view load readbacks by shader #2627
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2635"
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-25T23:53:11Z.
Change
Refs #448.
compute_store_aot_heap_view_loadran 77 renderer processes for two fixed shaders and fourteen independently recompiled mutations. It now runs the fixed references in one batch per shader and each mutation in its own process, for 16 launches. The 56 matching cases still cover one and two dispatch groups for every XY and XYZW view slot, including the selection past the table.The summary now reports all seven wrong references. The previous run counted three zero-publication controls in its final message while it executed four. For each of those four, and the three intentionally incorrect addressing models, the test checks the index, expected value and actual value at the first differing word. Each diagnostic identifies the suffix, slot and case. The batch helper from #2615 now takes the fixture name so both callers identify themselves.
Verification
cmake --build --preset release --target offscreen_checkandctest --preset release -V --no-tests=error -R '^compute_(heap_view_controls|store_aot_(descriptor_load_format|heap_view_(load|store))_warp)$'exercise the CPU controls, both batch callers and the independent heap-view store fixture. Windows Server 2025 Release run, including alternating full-fixture timingspython -B tests/compute_heap_view_check.py draw <dxc.exe> <offscreen_check.exe> <adapter>with the same renderer for the original and candidate on RTX 4060 (32.0.15.9579), Intel UHD 770 (32.0.101.5973) and WARP (10.0.26100.9711). On each adapter I recorded the shader and input bytes, status, 320-word summary and first wrong word for every dispatch. All 77 records and all 16 HLSL/DXIL pairs matched, including duplicate records and the 14 shader mutations. The desktop debug layer was unavailable.Evidence and follow-up
All four hosted CTests passed. On the same Windows Server runner with the debug layer, three interleaved WARP runs took 11.86, 11.46 and 11.51 s on the baseline and 7.87, 7.84 and 8.30 s on this branch. The median fell from 11.51 to 7.87 s (31.6%). On desktop WARP, after one warm-up per side, the median of three runs fell from 20.735 to 11.276 s (45.6%). How to run the fixture
On the same desktop, three timed pairs following one warm-up on each side gave median 38.189 → 17.113 s on RTX 4060 (55.2% lower) and 50.284 → 18.201 s on Intel UHD 770 (63.8% lower).
The test uses the existing source-generated shader and CPU reference. The changes affect the test runner and its documentation. AI-assisted with Codex (GPT-6.2 Astra, xhigh).
Checklist
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T23:57:57Z.
Review: COMMENTED
Review of head
76dd27e1against main (comment only, no code changes).What I checked:
check_referencesnow takes the fixture name; both callers (compute_load_format_check.py:416,compute_heap_view_check.py:296) pass it. No other callers in tests/.Compute readback differs.Commands run locally on this head (Linux): syntax parse of both tests,
python3 tests/docs_links_check.py(507 links ok),python3 tests/bidi_controls_check.py(clean),git diff --check origin/main...HEAD(clean). The WARP fixtures themselves run in the Windows receipt, which I post separately.No blocking findings.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T00:04:16Z.
Win2025 WARP receipt for head
91a16f18after updating with main. A first run with the build skipped used an out-of-date renderer and failed; the full-build rerun below passed.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
91a16f1864fbbf9d5e44c67675e59a098b8449bc:--preset dev):cmake --build --preset dev -- -j 2):61.33s(configure1.92s)ctest --preset dev -R '^compute_(heap_view_controls|store_aot_(descriptor_load_format|heap_view_(load|store))_warp)$' --parallel 6 --no-tests=error --output-on-failure): 4/4 passed (11.00s:compute_heap_view_controls0.78s,compute_store_aot_heap_view_load_warp3.93s,compute_store_aot_heap_view_store_warp10.38s,compute_store_aot_descriptor_load_format_warp10.86s)/O2(--preset release):cmake --build --preset release -- -j 2):74.85s(configure0.00s)ctest --preset release -R '^compute_(heap_view_controls|store_aot_(descriptor_load_format|heap_view_(load|store))_warp)$' --parallel 6 --no-tests=error --output-on-failure): 4/4 passed (11.26s:compute_heap_view_controls0.59s,compute_store_aot_heap_view_load_warp3.14s,compute_store_aot_heap_view_store_warp9.89s,compute_store_aot_descriptor_load_format_warp11.13s)tests/compute_heap_view_check.pyok (0.4s),tests/compute_load_format_check.pyok (0.5s)sccache: 218/229 hits; wall154.7sAI-assisted; commands listed were executed locally.