docs: the runtime ctest suite by host, Wine against native Windows, on one Pascal card (#1150) #1217

Open
github-bot wants to merge 1 commit from github-bot/gh-1217 into main AGit
Owner

@⁠robot00f on GitHub · 2026-11-24 20:27 UTC · original
robot00f:docs/ctest-hosts → main · +78 −0 · 2 files · 1 commits · open

Claim: #14 (ID RUNTIME-CTEST-HOST-PARITY; for #1150)

#1150 reports 24 runtime ctest failures under Wine 10.0 and asks for a Windows cross-check to separate ours from the host's. This is that cross-check, recorded so the classification does not live in one comment: the same suite, the same GPU model, Windows 10 natively.

Measured

  • 307 of 308 tests (1 disabled): 278 passed, 18 skipped, 11 failed (9 failed, 1 SegFault, 1 timeout), 96% in 452 s, no hang.
  • 19 of the reported failures pass natively and are host limits: xmem, file_system, bcrypt_rng(_seeded), d3d12_clear(_formats), dxgi_swapchain, dstorage, run_startup_cmdline, vk_device_filter_tools, root_sig, the host-comparison family, and all four hangs (d3d12_buffer_tiles, d3d12_texture_tiles, dxgi_host_parity, dxgi_waitable_latency).
  • 5 reproduce without Wine, so they are ours: d3d12_vulkan_device, d3d12_subresource_copy, d3d12_heap_properties, d3d12_existing_heap, d3d12_r9g9b9e5_uav.
  • 6 fail only natively, each deterministic 3/3 with --repeat until-fail:3 on this build: d3d12_subgroup (stack-layout-dependent SegFault in device slot 14, #1328), d3d12_set_descriptor_heaps (CHECK failed: !blob.empty(), #1353), root_signature_oracle (Windows 10 serializer refuses 0xC00, #988), d3d12_close_parity (#989), d3d12_pso_validation (DYNAMIC_DEPTH_BIAS parity at line 436, #967 / #1377), and xdxr_build_check, which is not a hang: it passes in 212 s with --timeout 400 (#1424).

The page lists each with the log line it produces and links the follow-up fixes measured since the run.

Tested

The full suite natively (MSVC 19.44, --parallel 4), the native-only failures isolated 3 times each, xgameruntime_offline(_hdr) interactively, and xdxr_build_check at a 400 s valve. check_no_game_data.py on both files -> exit 0; tests/test_docs_links.py, tests/test_docs_table_rows.py and tests/test_docs_repeated_lines.py -> OK.

Docs only. No game files, nothing run from the game.

GPUs tested: NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Vulkan device 1.4.312, Windows 10 19045. Model and PCI id withheld.

AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash; Antigravity)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption (CONTRIBUTING.md).
  • A new translator rule is in the contract table of docs/design.md. (n/a: no translator change)
**@⁠robot00f** on GitHub · 2026-11-24 20:27 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1217) `robot00f:docs/ctest-hosts` → `main` · +78 −0 · 2 files · 1 commits · open Claim: https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14 (ID `RUNTIME-CTEST-HOST-PARITY`; for #1150) #1150 reports 24 runtime ctest failures under Wine 10.0 and asks for a Windows cross-check to separate ours from the host's. This is that cross-check, recorded so the classification does not live in one comment: the same suite, the same GPU model, Windows 10 natively. ### Measured - 307 of 308 tests (1 disabled): 278 passed, 18 skipped, 11 failed (9 failed, 1 SegFault, 1 timeout), 96% in 452 s, no hang. - 19 of the reported failures pass natively and are host limits: `xmem`, `file_system`, `bcrypt_rng(_seeded)`, `d3d12_clear(_formats)`, `dxgi_swapchain`, `dstorage`, `run_startup_cmdline`, `vk_device_filter_tools`, `root_sig`, the host-comparison family, and all four hangs (`d3d12_buffer_tiles`, `d3d12_texture_tiles`, `dxgi_host_parity`, `dxgi_waitable_latency`). - 5 reproduce without Wine, so they are ours: `d3d12_vulkan_device`, `d3d12_subresource_copy`, `d3d12_heap_properties`, `d3d12_existing_heap`, `d3d12_r9g9b9e5_uav`. - 6 fail only natively, each deterministic 3/3 with `--repeat until-fail:3` on this build: `d3d12_subgroup` (stack-layout-dependent SegFault in device slot 14, #1328), `d3d12_set_descriptor_heaps` (`CHECK failed: !blob.empty()`, #1353), `root_signature_oracle` (Windows 10 serializer refuses `0xC00`, #988), `d3d12_close_parity` (#989), `d3d12_pso_validation` (`DYNAMIC_DEPTH_BIAS` parity at line 436, #967 / #1377), and `xdxr_build_check`, which is not a hang: it passes in 212 s with `--timeout 400` (#1424). The page lists each with the log line it produces and links the follow-up fixes measured since the run. ### Tested The full suite natively (MSVC 19.44, `--parallel 4`), the native-only failures isolated 3 times each, `xgameruntime_offline(_hdr)` interactively, and `xdxr_build_check` at a 400 s valve. `check_no_game_data.py` on both files -> exit 0; `tests/test_docs_links.py`, `tests/test_docs_table_rows.py` and `tests/test_docs_repeated_lines.py` -> OK. Docs only. No game files, nothing run from the game. GPUs tested: NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Vulkan device 1.4.312, Windows 10 19045. Model and PCI id withheld. AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash; Antigravity) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption (CONTRIBUTING.md). - [x] A new translator rule is in the contract table of `docs/design.md`. (n/a: no translator change)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:43:15 +00:00
Author
Owner

@⁠qhukz13 on GitHub · 2026-11-24 21:19 UTC · original

An independent run on the same card class, natively: GeForce GTX 1050 Ti 4 GB, NVIDIA 582.66, Windows 10 Pro 19045, MSVC (VS 2022 Build Tools), RelWithDebInfo at 6293c1c4f (20 commits before your 58be9cdf; none of them touches runtime/shims/d3d12_vulkan_device.cpp, runtime/src/vulkan_backend.h or the subgroup test). ctest --parallel 4, no --timeout, implicit layers left on. Result: 308 tests, 11 failed, 236 s.

Reproduced, same symptoms:

  • the five you classify as ours: d3d12_vulkan_device, d3d12_subresource_copy (line 391, CPU copies (host image copy): the steps differ from the host's), d3d12_heap_properties (CUSTOM write-back L0: ours 0x8007000e host 0x0), d3d12_existing_heap (slot-133 pages not imported, HRESULT 0x80004001, line 196) and d3d12_r9g9b9e5_uav (format not supported yet: 67);
  • d3d12_set_descriptor_heaps (CHECK failed: !blob.empty(), line 341) and d3d12_close_parity (3 failures of 113 cases);
  • d3d12_pso_validation fails here too; the failing check printed is line 436, check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...), which may be worth naming next to the depth-stencil format lines;
  • xdxr_build_check is no hang: it passes in 201.9 s with ctest's default timeout, which agrees with your 212 s and with giving it its own TIMEOUT.

Not reproduced: d3d12_subgroup passes here, 3 of 3 with --repeat until-fail:3 (2.3-2.8 s each), on the same Pascal 4 GB class. With the code paths unchanged between the two commits, the SegFault after device slot 16 (CreateRootSignature) first call looks tied to something outside the repository: the driver (582.28 there, 582.66 here) or the disabled implicit layers are the first two differences I can see. It may be worth saying on the page that it is one machine's result until a second one crashes.

Three failures here that the page does not list, all of which look like host or session limits rather than the layer:

  • root_signature_oracle: FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it. The 1.2 cases already SKIP on this Windows 10 runtime; the flags case may need the same guard. Did it pass on your 19045?
  • xgameruntime_offline and xgameruntime_offline_hdr: FAIL XDisplayAcquireTimeoutDeferral acquires a display power request handle. My run was started over SSH (a non-interactive session), which is a likely reason; I have not rerun it from a desktop session yet.

No game files. AI-assisted (Claude Code).

**@⁠qhukz13** on GitHub · 2026-11-24 21:19 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1217#issuecomment-7144772946) An independent run on the same card class, natively: GeForce GTX 1050 Ti 4 GB, NVIDIA 582.66, Windows 10 Pro 19045, MSVC (VS 2022 Build Tools), RelWithDebInfo at `6293c1c4f` (20 commits before your `58be9cdf`; none of them touches `runtime/shims/d3d12_vulkan_device.cpp`, `runtime/src/vulkan_backend.h` or the subgroup test). `ctest --parallel 4`, no `--timeout`, implicit layers left on. Result: 308 tests, 11 failed, 236 s. **Reproduced, same symptoms:** - the five you classify as ours: `d3d12_vulkan_device`, `d3d12_subresource_copy` (line 391, `CPU copies (host image copy): the steps differ from the host's`), `d3d12_heap_properties` (`CUSTOM write-back L0: ours 0x8007000e host 0x0`), `d3d12_existing_heap` (slot-133 pages not imported, HRESULT `0x80004001`, line 196) and `d3d12_r9g9b9e5_uav` (`format not supported yet: 67`); - `d3d12_set_descriptor_heaps` (`CHECK failed: !blob.empty()`, line 341) and `d3d12_close_parity` (3 failures of 113 cases); - `d3d12_pso_validation` fails here too; the failing check printed is line 436, `check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...)`, which may be worth naming next to the depth-stencil format lines; - `xdxr_build_check` is no hang: it **passes in 201.9 s** with ctest's default timeout, which agrees with your 212 s and with giving it its own `TIMEOUT`. **Not reproduced:** `d3d12_subgroup` **passes** here, 3 of 3 with `--repeat until-fail:3` (2.3-2.8 s each), on the same Pascal 4 GB class. With the code paths unchanged between the two commits, the SegFault after `device slot 16 (CreateRootSignature) first call` looks tied to something outside the repository: the driver (582.28 there, 582.66 here) or the disabled implicit layers are the first two differences I can see. It may be worth saying on the page that it is one machine's result until a second one crashes. **Three failures here that the page does not list,** all of which look like host or session limits rather than the layer: - `root_signature_oracle`: `FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it`. The 1.2 cases already SKIP on this Windows 10 runtime; the flags case may need the same guard. Did it pass on your 19045? - `xgameruntime_offline` and `xgameruntime_offline_hdr`: `FAIL XDisplayAcquireTimeoutDeferral acquires a display power request handle`. My run was started over SSH (a non-interactive session), which is a likely reason; I have not rerun it from a desktop session yet. No game files. AI-assisted (Claude Code).
Author
Owner

@⁠robot00f on GitHub · 2026-11-25 01:05 UTC · original

Thanks @⁠qhukz13 for the independent Pascal 4 GB cross-check — re-checked the saved _ctest.log from 58be9cdf and updated the page (rebased onto current main in c253e028):

  1. root_signature_oracle on 19045: it did fail here too (Test #122: FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it / Unsupported bit-flag set (root signature flags c7f)). It was the missing 11th entry in 11 failed (the two tables previously listed 5 + 5 = 10). Added to the native-only table (now 5 + 6 = 11), and corrected the summary row from 279 passed, 11 failed, 47 skipped to the exact counts in _ctest.log: 278 passed, 11 failed (9 failed, 1 SegFault, 1 timeout), 18 skipped (278 + 11 + 18 = 307).
  2. Why d3d12_subgroup crashed 3/3 here and passed 3/3 on your build: we traced and fixed that crash in #1328. It was stack-layout-dependent rather than driver-dependent: in d3d12_xs_device.cpp slot 14 (CreateDescriptorHeap), console_heap_range_plausible() checked only size == NumDescriptors * 32 without requiring 64 KiB alignment, so when the caller's adjacent stack words after a PC D3D12_DESCRIPTOR_HEAP_DESC happened to hold 0x65626f72705f7370 ("ps_probe") and 32 in our MSVC 19.44 build, CreateRenderTargetView wrote to 0x65626f72705f7370. A different build/stack frame (clang-cl under Wine, or your VS Build Tools build) does not place 32 at +0x18. Recorded on the page alongside your 3/3 pass.
  3. d3d12_pso_validation and d3d12_r9g9b9e5_uav failing checks: updated d3d12_pso_validation to name line 436: check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...) (noting the depth-stencil format lines are negative-case logs), and d3d12_r9g9b9e5_uav to name line 669: CreateCommittedResource(&custom_heap, ...) (the same Pascal HOST_TRANSFER CPU-heap failure your #1364 fixed — verified passing 3/3 on current main).
  4. xgameruntime_offline(_hdr): confirmed — our run was from an interactive desktop session, where both pass (0.11 s and 0.03 s). Added a bullet under Reading it noting the SSH / non-interactive XDisplayAcquireTimeoutDeferral difference, plus the follow-up PRs in What follows (#1364, #1389, #1458, #1328, #1353, #988, #989, #967/#1377, #1424).

AI-assisted: yes (Antigravity).

**@⁠robot00f** on GitHub · 2026-11-25 01:05 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1217#issuecomment-7149188307) Thanks @⁠qhukz13 for the independent Pascal 4 GB cross-check — re-checked the saved `_ctest.log` from `58be9cdf` and updated the page (rebased onto current `main` in `c253e028`): 1. **`root_signature_oracle` on 19045:** it **did** fail here too (`Test #122: FAIL 1.1 with every root-signature flag: Microsoft serializer accepts it` / `Unsupported bit-flag set (root signature flags c7f)`). It was the missing 11th entry in `11 failed` (the two tables previously listed `5 + 5 = 10`). Added to the native-only table (now `5 + 6 = 11`), and corrected the summary row from `279 passed, 11 failed, 47 skipped` to the exact counts in `_ctest.log`: **`278 passed, 11 failed (9 failed, 1 SegFault, 1 timeout), 18 skipped`** (`278 + 11 + 18 = 307`). 2. **Why `d3d12_subgroup` crashed 3/3 here and passed 3/3 on your build:** we traced and fixed that crash in #1328. It was stack-layout-dependent rather than driver-dependent: in `d3d12_xs_device.cpp` slot 14 (`CreateDescriptorHeap`), `console_heap_range_plausible()` checked only `size == NumDescriptors * 32` without requiring 64 KiB alignment, so when the caller's adjacent stack words after a PC `D3D12_DESCRIPTOR_HEAP_DESC` happened to hold `0x65626f72705f7370` (`"ps_probe"`) and `32` in our MSVC 19.44 build, `CreateRenderTargetView` wrote to `0x65626f72705f7370`. A different build/stack frame (`clang-cl` under Wine, or your VS Build Tools build) does not place `32` at `+0x18`. Recorded on the page alongside your 3/3 pass. 3. **`d3d12_pso_validation` and `d3d12_r9g9b9e5_uav` failing checks:** updated `d3d12_pso_validation` to name `line 436: check_gfx_parity("gfx: Flags=DYNAMIC_DEPTH_BIAS", ...)` (noting the depth-stencil format lines are negative-case logs), and `d3d12_r9g9b9e5_uav` to name `line 669: CreateCommittedResource(&custom_heap, ...)` (the same Pascal `HOST_TRANSFER` CPU-heap failure your #1364 fixed — verified passing 3/3 on current `main`). 4. **`xgameruntime_offline(_hdr)`:** confirmed — our run was from an interactive desktop session, where both pass (`0.11 s` and `0.03 s`). Added a bullet under `Reading it` noting the SSH / non-interactive `XDisplayAcquireTimeoutDeferral` difference, plus the follow-up PRs in `What follows` (#1364, #1389, #1458, #1328, #1353, #988, #989, #967/#1377, #1424). AI-assisted: yes (Antigravity).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1217/head:github-bot/gh-1217'
git switch 'github-bot/gh-1217'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1217'
git switch 'github-bot/gh-1217'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1217'
git switch 'github-bot/gh-1217'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1217'
git switch 'main'
git merge --squash 'github-bot/gh-1217'
git switch 'main'
git merge --ff-only 'github-bot/gh-1217'
git switch 'main'
git merge 'github-bot/gh-1217'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.