tests: honor the hardware adapter filter in startup stream fixtures #2416
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2424"
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-25T16:20:48Z.
Fixes #2416.
Five startup-stream test drivers now share hardware adapter selection. A case-insensitive substring in
XBOX2WINDOWS_ADAPTERselects a non-software D3D12 feature-level 12 device, preserving DXGI's high-performance order. An unmatched or overlong explicit name produces a diagnostic and exit 4. WARP still runs when a hardware filter is present.I reproduced the false pass with the previous rasterizer binary: both an Intel selector and a nonexistent selector ran on the RTX 4060. The new CTest checks the native exit code and diagnostic for both an absent name and a 128-character name.
I ran the five complete draw/readback fixtures on Windows 11 in each of four configurations. All 20 passed. In each configuration I checked 22 adapter descriptions printed by the native drivers:
uHd gRaPhIcS 770gEfOrCe rTxThe negative selection test and all five WARP fixtures also passed on Windows Server 2025 with a nonexistent hardware filter. Source and fixtures use synthetic shaders only.
AI-assisted with Codex + GPT-6.2 Astra (xhigh).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T16:43:46Z.
Review: COMMENTED
Review of head
d169b99b.Checked against origin/main:
pick_stream_adapter()intests/startup_stream_setup.cpp. The old copies were identical, so this is a clean dedupe.startup_stream_adapter_filterchecks exit code 4 and the exact stderr text for both the overlong and the unmatched case. It returns 77 (skip) when there is no hardware adapter. It guards the false pass described in #2416.Commands run:
merge_check.py 2424,gh pr diff 2424,gh pr list --state all --search ...,gh pr checks 2424.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T16:48:53Z.
Win2025 WARP receipt for head
8a9265edafter updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
8a9265edba3f2ab92871cf749443f2a70db6ce00:--preset dev):cmake --build --preset dev --target cpu_placed_provider startup_draw_depth_target startup_slot57_depth startup_stream_consumer startup_stream_depth startup_stream_rasterizer startup_stream_setup_obj -- -j 2):12.36s(configure0.00s)ctest --preset dev -R 'startup_(stream|draw_depth|slot57).*(warp|adapter_filter)' --parallel 4 --no-tests=error --output-on-failure): 13/14 passed (6.07s:startup_slot57_blend_draw_warp2.26s,startup_slot57_depth_warp2.45s,startup_stream_fetch_warp1.05s,startup_stream_draw_warp3.57s,startup_draw_depth_target_warp1.32s,startup_stream_depth_warp4.34s,startup_stream_request_warp1.20s,startup_draw_depth_target_drop_control_warp1.13s,startup_stream_viewport_warp1.03s,startup_stream_adapter_filter0.19s,startup_stream_interface_warp0.81s,startup_stream_rasterizer_ignore_warp0.82s,startup_stream_rasterizer_warp0.83s,startup_draw_depth_target_debug_warp0.87s); skipped (capability, not a pass):startup_draw_depth_target_debug_warp/O2(--preset release):cmake --build --preset release --target cpu_placed_provider startup_draw_depth_target startup_slot57_depth startup_stream_consumer startup_stream_depth startup_stream_rasterizer startup_stream_setup_obj -- -j 2):6.09s(configure0.00s)ctest --preset release -R 'startup_(stream|draw_depth|slot57).*(warp|adapter_filter)' --parallel 4 --no-tests=error --output-on-failure): 13/14 passed (4.86s:startup_stream_request_warp1.03s,startup_slot57_depth_warp1.82s,startup_draw_depth_target_drop_control_warp1.02s,startup_stream_draw_warp2.76s,startup_draw_depth_target_warp1.19s,startup_stream_depth_warp3.37s,startup_slot57_blend_draw_warp1.44s,startup_stream_fetch_warp0.92s,startup_stream_viewport_warp0.78s,startup_stream_adapter_filter0.16s,startup_stream_interface_warp0.65s,startup_stream_rasterizer_warp0.78s,startup_stream_rasterizer_ignore_warp0.68s,startup_draw_depth_target_debug_warp0.76s); skipped (capability, not a pass):startup_draw_depth_target_debug_warpsccache: 13/26 hits; wall30.1sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T17:10:41Z.
Review: COMMENTED
Review of head
8a9265ed(baseb442b57f), built and run at that exact revision. This complements @tedin7's review ofd169b99band his WARP receipt with a physical AMD adapter and a negative control.Verdict: no findings. The behaviour matches the description and #2416, and the new test catches the original false pass.
Environment
--preset dev(Debug), MSVC 14.44.Commands executed
I ran the second command once per
XBOX2WINDOWS_ADAPTERsetting:XBOX2WINDOWS_ADAPTERrAdEoN rX 9070no-such-adapter-768*_hardwaretest, each withNo D3D12 hardware adapter matches XBOX2WINDOWS_ADAPTER=no-such-adapter-768. WARP tests andstartup_stream_adapter_filterpassed.There were no capability skips.
Negative control
I restored the six drivers and the
startup_stream_setupfiles to the baseb442b57f, kept the PR's CTest and check script, and rebuilt. Then, withXBOX2WINDOWS_ADAPTER=no-such-adapter-768:startup_stream_adapter_filterfailed:expected 'XBOX2WINDOWS_ADAPTER is longer than 127 characters', got exit 0, and the driver ran on the RX 9070 XT.startup_stream_rasterizer_hardwarepassed on the RX 9070 XT despite the nonexistent selector. That is the false pass #2416 reports.After restoring the PR sources and rebuilding,
startup_stream_adapter_filterpasses again.Merge checks
8a9265edis the one tested. The PR is mergeable (clean) and has no review threads./O2and coverage jobs are skipped by explicit workflow conditions:if: github.event_name != 'pull_request', and main pushes only, respectively.These are source-built synthetic fixtures only; no executable run is involved.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T17:11:29Z.
Review: APPROVED
Approving
8a9265ed: verified on an RX 9070 XT and WARP, with a negative control. See my review above. AI-assisted.