Skip to content

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

Open
robot00f wants to merge 2 commits into
ProjectLeonida:mainfrom
robot00f:docs/ctest-hosts
Open

robot00f wants to merge 2 commits into
ProjectLeonida:mainfrom
robot00f:docs/ctest-hosts

Conversation

@robot00f

@robot00f robot00f commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Claim: #14 (comment) (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

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)

@qhukz13

qhukz13 commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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

@robot00f

Copy link
Copy Markdown
Contributor Author

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 d3d12: require a console heap address to be 64 KiB aligned before slot 14 reads it #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 runtime: fall back to staging copies when a HOST_TRANSFER image has no memory type (OLD-4682) #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 (runtime: fall back to staging copies when a HOST_TRANSFER image has no memory type (OLD-4682) #1364, runtime tests: compare heaps on a resource heap tier 1 host (TEST-HEAP-TIER1-HOST) #1389, d3d12: drop UNIFORM_BUFFER_BIT on sub-page host imports refused by 256B UBO alignment (D3D12-HOST-BUFFER-SUBPAGE-UBO) #1458, d3d12: require a console heap address to be 64 KiB aligned before slot 14 reads it #1328, d3d12_xs: keep the heap-directly-indexed flags on a host that refuses to serialize them #1353, root_signature_oracle_test: check the flag word without the heap-direct bits where the host can't serialize them (OLD-4731) #988, d3d12_close_parity_test: the unaligned footprint copies follow WARP's UnrestrictedBufferTextureCopyPitchSupported (OLD-6071) #989, d3d12_pso_validation_test: compare the DYNAMIC_* PSO flags with the host only where it reports them (TEST-WIN10-PSO-FLAGS) #967/d3d12: GCL9 RSSetDepthBias and IASetIndexBufferStripCutValue, the DYNAMIC_* PSO flags #1377, runtime: xdxr_build_check gets its own ctest TIMEOUT (CTEST-XDXR-CHECK-TIMEOUT) #1424).

AI-assisted: yes (Antigravity).

…#1150)

Five rows of the previous tables re-run three times each on the same
GTX 1050 Ti / Windows 10 19045 host: d3d12_subresource_copy and
d3d12_r9g9b9e5_uav now pass, d3d12_existing_heap needs ProjectLeonida#1894, and both
remaining heap rows (d3d12_heap_properties ALLOW_ALL and the
d3d12_vulkan_device HARDWARE_PROTECTED row) are the tier-1 host gate
that ProjectLeonida#1389 covers.

AI-assisted (OpenCode, DeepSeek).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants