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

Merged
RavenCurseBurg merged 2 commits from upstream-pr/2380 into main 2026-11-25 14:38:09 +00:00
RavenCurseBurg commented 2026-11-25 14:29:04 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T14:29:04Z.


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).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6606791013 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2380). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T14:29:04Z. --- ## 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://github.com/R0Y00/Xbox2Windows/pull/2369#issuecomment-7165267447). #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).
upstream-sync closed this pull request 2026-11-25 15:01:52 +00:00
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!2372
No description provided.