build: add SKIP_RETURN_CODE 77 to hardware tests that skip on a missing adapter #1978
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1985"
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 RenzoWit35 on 2026-11-24T22:36:50Z.
Change
offscreen_checkreturns 77 when no D3D12 hardware adapter is visible (No D3D12-capable hardware adapter visible). Most hardware variants registerSKIP_RETURN_CODE 77, so ctest reports a skip. Five tests did not, so on a PC without a hardware adapter ctest reported them as Failed. CI excludes_hardware$, so this only shows up in local runs and in hardware reports.wave64_emulate_${adapter}:TIMEOUT 45 SKIP_RETURN_CODE 77, like its loop neighbourswave_shuffleandshader_wave.startup_cb_blend_${adapter},startup_cb_blend_swapped_${adapter},startup_composite_provenance_${adapter}:SKIP_RETURN_CODE 77added next to the existingTIMEOUT 60, likestartup_sampler_x_${adapter}in the same loop.compute_store_aot_scratch_base_hardware: added to the hardware-onlyset_tests_propertieslist next tocompute_store_aot_hardware,..._guard_read_hardwareand..._f32_hardware. The Python driver returns the renderer's exit code unchanged.The three loop edits also apply to the
warpvariants of those tests. WARP always provides an adapter, so nothing changes there (the neighbouring tests behave the same way).Verification
Environment: Windows 11, CMake dev preset, configure only (no build), Python 3.14.
Systematic scan:
ctest --test-dir out/build/dev --show-only=json-v1before and after, then a script that lists every test whose name ends in_hardwareand has noSKIP_RETURN_CODEproperty, for any program.wave64_emulate_hardware,startup_cb_blend_hardware,startup_cb_blend_swapped_hardware,startup_composite_provenance_hardware,compute_store_aot_scratch_base_hardware, andstartup_sampler_heap_wrapped_hardware(excluded, see below).startup_sampler_heap_wrapped_hardware.SKIP_RETURN_CODEfrom unset to 77 on the five tests above and on thewarpvariants ofwave64_emulate,startup_cb_blend,startup_cb_blend_swappedandstartup_composite_provenance. No other property or command changed.Source checks:
tests/offscreen_check.cppreturns 77 on a missing adapter (theif (!adapter)branch) and the three affected options (--wave64-emulate,--startup-cb-blend[-swapped],--startup-composite-provenance) arekNoGateentries, so they reach that branch.compute_store_check.py drawreturns the renderer's non-zero exit code as is.Excluded:
startup_sampler_heap_wrapped_hardwarerunsstartup_sampler_heap_check.py wrappedagainst thed3d12_xs_shimDLL and never startsoffscreen_check. It asserts instead of skipping, so adding 77 would not be correct. It was the only other_hardwaretest without the property.After rebasing on current
main(1258 registered tests), a fresh configure showsSKIP_RETURN_CODE 77on the five tests above and on the fourwarpvariants. Upstream had meanwhile addedcompute_store_aot_cvt_u32_f32_hardwareto the same hardware-only list; it is kept, andcompute_store_aot_scratch_base_hardwareis added after it.Not run: no PC without a hardware adapter was available, and the tests themselves were not run. Only the registered properties were compared.
Evidence and follow-up
No open PR changes these lines (checked the diffs of all open PRs that touch
CMakeLists.txtfor these test names). No issue is linked.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:06:17Z.
Resolved the registration conflict with #1991 and gave its hardware variant the same exit-77 policy. The five WARP cases keep their existing failure status. Windows Release passed 10/10 real GPU/WARP tests. CTest JSON lists all six hardware skip properties. An explicitly invalid adapter selector still fails with exit 1, as intended; this host has usable hardware, so it cannot reproduce real absence.