tests: preserve shader draw failures across a later capability skip #2380

Manually merged
github merged 2 commits from gh-pr/2380/head into gh-pr/2380/base 2026-11-27 00:46:48 +00:00
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 14:29 UTC · original
RavenCurseBurg:tests/draw-failure-before-skip → main · +43 −9 · 12 files · 2 commits · merged 2026-11-25 14:38 UTC

Change

The nine startup pixel draw checks that accumulate failed comparisons used to exit 77 as soon as the renderer reported a capability skip. CTest consequently marked a test skipped even when it had already logged a mismatch. Each check now exits 1 if it has recorded a failure and 77 otherwise. The original comparison and renderer diagnostics stay in the output.

This addresses the sibling-fixture follow-up in #2369. #2368 changes compilation in two of the same scripts. git merge-tree --write-tree 9c735a1d 56cae1e6 merges cleanly.

Verification

  • python -B tests/startup_gfx2hlsl_draw_skip_check.py runs both prior outcomes for each of the nine fixtures. Against parent c7f38d05, all nine failure-then-skip cases failed the assertion (77 instead of 1). At 9c735a1d all 18 sequences passed. The test runs in the Linux Python job and is registered as startup_gfx2hlsl_draw_skip in CTest.
  • Ran the nine affected tests/startup_gfx2hlsl_*_check.py scripts by path with python -B and no arguments. All exited 0.
  • Ran the DPP pair draw entry with actual DXC and a scripted renderer. A first-draw capability skip exited 77. A first-draw pixel mismatch followed by the same skip printed both diagnostics and exited 1.
  • Ran python -B tests/startup_gfx2hlsl_dpp_pair_check.py draw <dxc> <offscreen_check> warp on local Windows WARP (10.0.26100.9711). All full-image comparisons passed. python -B tests/startup_gfx2hlsl_sgpr_spill_check.py draw <dxc> <offscreen_check> hardware <fxc> passed on the desktop hardware backend with both compilers, including the four incorrect reload controls for each. The local D3D12 debug layer was unavailable.
  • git diff --cached --check passed before the commit.

The new host test uses a synthetic renderer result and the existing fixture check functions. It requires no game data or GPU.

AI assistance: Codex, GPT-6.2 Astra (xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 14:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2380) `RavenCurseBurg:tests/draw-failure-before-skip` → `main` · +43 −9 · 12 files · 2 commits · merged 2026-11-25 14:38 UTC ## Change The nine startup pixel draw checks that accumulate failed comparisons used to exit 77 as soon as the renderer reported a capability skip. CTest consequently marked a test skipped even when it had already logged a mismatch. Each check now exits 1 if it has recorded a failure and 77 otherwise. The original comparison and renderer diagnostics stay in the output. This addresses the [sibling-fixture follow-up in #2369](https://git.gtahub.st/github/R0Y00--Xbox2Windows/pulls/2369). #2368 changes compilation in two of the same scripts. `git merge-tree --write-tree 9c735a1d 56cae1e6` merges cleanly. ## Verification - `python -B tests/startup_gfx2hlsl_draw_skip_check.py` runs both prior outcomes for each of the nine fixtures. Against parent `c7f38d05`, all nine failure-then-skip cases failed the assertion (77 instead of 1). At `9c735a1d` all 18 sequences passed. The test runs in the Linux Python job and is registered as `startup_gfx2hlsl_draw_skip` in CTest. - Ran the nine affected `tests/startup_gfx2hlsl_*_check.py` scripts by path with `python -B` and no arguments. All exited 0. - Ran the DPP pair `draw` entry with actual DXC and a scripted renderer. A first-draw capability skip exited 77. A first-draw pixel mismatch followed by the same skip printed both diagnostics and exited 1. - Ran `python -B tests/startup_gfx2hlsl_dpp_pair_check.py draw <dxc> <offscreen_check> warp` on local Windows WARP (10.0.26100.9711). All full-image comparisons passed. `python -B tests/startup_gfx2hlsl_sgpr_spill_check.py draw <dxc> <offscreen_check> hardware <fxc>` passed on the desktop hardware backend with both compilers, including the four incorrect reload controls for each. The local D3D12 debug layer was unavailable. - `git diff --cached --check` passed before the commit. The new host test uses a synthetic renderer result and the existing fixture check functions. It requires no game data or GPU. AI assistance: Codex, GPT-6.2 Astra (xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:46:47 +00:00
github manually merged commit f2150dbcfd into gh-pr/2380/base 2026-11-27 00:46:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.