build: add SKIP_RETURN_CODE 77 to hardware tests that skip on a missing adapter #1978

Merged
RenzoWit35 merged 2 commits from upstream-pr/1985 into main 2026-11-24 23:11:27 +00:00
RenzoWit35 commented 2026-11-24 22:36:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RenzoWit35 on 2026-11-24T22:36:50Z.


Change

offscreen_check returns 77 when no D3D12 hardware adapter is visible (No D3D12-capable hardware adapter visible). Most hardware variants register SKIP_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 neighbours wave_shuffle and shader_wave.
  • startup_cb_blend_${adapter}, startup_cb_blend_swapped_${adapter}, startup_composite_provenance_${adapter}: SKIP_RETURN_CODE 77 added next to the existing TIMEOUT 60, like startup_sampler_x_${adapter} in the same loop.
  • compute_store_aot_scratch_base_hardware: added to the hardware-only set_tests_properties list next to compute_store_aot_hardware, ..._guard_read_hardware and ..._f32_hardware. The Python driver returns the renderer's exit code unchanged.

The three loop edits also apply to the warp variants 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-v1 before and after, then a script that lists every test whose name ends in _hardware and has no SKIP_RETURN_CODE property, for any program.

  • Before: wave64_emulate_hardware, startup_cb_blend_hardware, startup_cb_blend_swapped_hardware, startup_composite_provenance_hardware, compute_store_aot_scratch_base_hardware, and startup_sampler_heap_wrapped_hardware (excluded, see below).
  • After: only startup_sampler_heap_wrapped_hardware.
  • Full property diff of all 1055 tests before vs after: the test set is identical. The only changes are SKIP_RETURN_CODE from unset to 77 on the five tests above and on the warp variants of wave64_emulate, startup_cb_blend, startup_cb_blend_swapped and startup_composite_provenance. No other property or command changed.

Source checks: tests/offscreen_check.cpp returns 77 on a missing adapter (the if (!adapter) branch) and the three affected options (--wave64-emulate, --startup-cb-blend[-swapped], --startup-composite-provenance) are kNoGate entries, so they reach that branch. compute_store_check.py draw returns the renderer's non-zero exit code as is.

Excluded: startup_sampler_heap_wrapped_hardware runs startup_sampler_heap_check.py wrapped against the d3d12_xs_shim DLL and never starts offscreen_check. It asserts instead of skipping, so adding 77 would not be correct. It was the only other _hardware test without the property.

After rebasing on current main (1258 registered tests), a fresh configure shows SKIP_RETURN_CODE 77 on the five tests above and on the four warp variants. Upstream had meanwhile added compute_store_aot_cvt_u32_f32_hardware to the same hardware-only list; it is kept, and compute_store_aot_scratch_base_hardware is 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.txt for these test names). No issue is linked.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6592799121 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1985). Originally posted by [RenzoWit35](https://github.com/RenzoWit35) on 2026-11-24T22:36:50Z. --- ## Change `offscreen_check` returns 77 when no D3D12 hardware adapter is visible (`No D3D12-capable hardware adapter visible`). Most hardware variants register `SKIP_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 neighbours `wave_shuffle` and `shader_wave`. - `startup_cb_blend_${adapter}`, `startup_cb_blend_swapped_${adapter}`, `startup_composite_provenance_${adapter}`: `SKIP_RETURN_CODE 77` added next to the existing `TIMEOUT 60`, like `startup_sampler_x_${adapter}` in the same loop. - `compute_store_aot_scratch_base_hardware`: added to the hardware-only `set_tests_properties` list next to `compute_store_aot_hardware`, `..._guard_read_hardware` and `..._f32_hardware`. The Python driver returns the renderer's exit code unchanged. The three loop edits also apply to the `warp` variants 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-v1` before and after, then a script that lists every test whose name ends in `_hardware` and has no `SKIP_RETURN_CODE` property, for any program. - Before: `wave64_emulate_hardware`, `startup_cb_blend_hardware`, `startup_cb_blend_swapped_hardware`, `startup_composite_provenance_hardware`, `compute_store_aot_scratch_base_hardware`, and `startup_sampler_heap_wrapped_hardware` (excluded, see below). - After: only `startup_sampler_heap_wrapped_hardware`. - Full property diff of all 1055 tests before vs after: the test set is identical. The only changes are `SKIP_RETURN_CODE` from unset to 77 on the five tests above and on the `warp` variants of `wave64_emulate`, `startup_cb_blend`, `startup_cb_blend_swapped` and `startup_composite_provenance`. No other property or command changed. Source checks: `tests/offscreen_check.cpp` returns 77 on a missing adapter (the `if (!adapter)` branch) and the three affected options (`--wave64-emulate`, `--startup-cb-blend[-swapped]`, `--startup-composite-provenance`) are `kNoGate` entries, so they reach that branch. `compute_store_check.py draw` returns the renderer's non-zero exit code as is. Excluded: `startup_sampler_heap_wrapped_hardware` runs `startup_sampler_heap_check.py wrapped` against the `d3d12_xs_shim` DLL and never starts `offscreen_check`. It asserts instead of skipping, so adding 77 would not be correct. It was the only other `_hardware` test without the property. After rebasing on current `main` (1258 registered tests), a fresh configure shows `SKIP_RETURN_CODE 77` on the five tests above and on the four `warp` variants. Upstream had meanwhile added `compute_store_aot_cvt_u32_f32_hardware` to the same hardware-only list; it is kept, and `compute_store_aot_scratch_base_hardware` is 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.txt` for these test names). No issue is linked. AI-assisted.
upstream-sync closed this pull request 2026-11-25 00:04:47 +00:00
R0Y00 commented 2026-11-25 01:01:51 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7147017685 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1985#issuecomment-7147017685). Originally posted by [R0Y00](https://github.com/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.
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!1978
No description provided.