tests: preserve shader draw failures across a later capability skip #2372
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2380"
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-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 56cae1e6merges cleanly.Verification
python -B tests/startup_gfx2hlsl_draw_skip_check.pyruns both prior outcomes for each of the nine fixtures. Against parentc7f38d05, all nine failure-then-skip cases failed the assertion (77 instead of 1). At9c735a1dall 18 sequences passed. The test runs in the Linux Python job and is registered asstartup_gfx2hlsl_draw_skipin CTest.tests/startup_gfx2hlsl_*_check.pyscripts by path withpython -Band no arguments. All exited 0.drawentry 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.python -B tests/startup_gfx2hlsl_dpp_pair_check.py draw <dxc> <offscreen_check> warpon 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 --checkpassed 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).