D3D12.X: segments parked as spares stop holding their PC allocator (~4 GB less non-local memory) #2936

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

@⁠Kalmarv on GitHub · 2026-11-27 01:15 UTC · original
Kalmarv:park-spares → main · +41 −0 · 3 files · 1 commits · open

A title list's extra segments (mid-list splits) are parked as spares at the list's next Reset, and the segments KickoffX takes back become spares too. A spare records again only after its own later Reset, but alloc_pool still counted it as a user of the PC allocator it last recorded on, so that allocator never became free. Every later Reset of the title's allocator while those were "in use" put one more PC allocator aside, and none was ever reused or released. The previous recording a stand-in replaces at Reset pinned its allocator the same way. On the title this is a host GPU memory step of several GB about 160-180 s into the world that never comes back.

What is in it

  • alloc_pool::park_list: drops a list from its allocator's users; the allocator's own submit marks stay, so it is reused only once the GPU is past them (alloc_pool.rs, with the test a_parked_spare_no_longer_holds_its_allocator).
  • title_list::reset parks the moved segments and the recording a stand-in replaces (title_list.rs); kickoff_x parks its reclaimed segments after both submits (list_x.rs).

Tested

  • RTX 5070 Ti (driver 610.74), Windows 11 Pro 26200, Rust 1.99.0 MSVC, DXC 1.9 via XCL_DXC_DIR.
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 on cae11a79: 1447 passed, 0 failed, 47 ignored. 25 SKIPPED: 21 no wave64, 3 refused per-lane f16 forms, 1 no heap windows.
  • Title, Series X profile, 240 s untimed runs with object counts in the activity log, 100 s to 240 s (same build otherwise, the change behind a switch then):
    • PC allocators: 1,137 -> 1,928 without; 728-753 -> 862-897 with.
    • Non-local video memory: 6.2 -> 9.6 GB without; 5.0 -> 5.4-5.5 GB with (about 4 GB less at 240 s).
    • Timed pairs, fps over 187-229 s: 11.99 and 10.76 without, 10.76 and 11.76 with (run-to-run spread is about 10 %), so no frame-rate cost.

Regression run

  • 480 s smoke pair on main's cache from an offline xcl shaders --precompile --pipelines (this PR changes no shader translation, so its keys are main's; at 60 s a run on current main ends inside the startup shader preparation of #2555). Same env as the timed runs' base (XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=all XCL_DIRECT_SPLIT_INSTRUCTIONS=0 XCL_PSO_JOURNAL=0 XCL_DRED=1, DXC 1.9), no switch of this PR set, the same button presses.

main 8b957bec:

xcl-smoke v1
commit: 8b957bec6f82495aec940944c6bf47faa02db590
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 480
exit: 0x0
frames shown: 1687 (PresentX 1687)
presents per 2 s (last 3): 1 2 1
device removals: 0
crashes: 0
peak commit: 38717 MB

cae11a79:

xcl-smoke v1
commit: cae11a796aa424700977d6d5b28082fc5ebe172e
gpu: NVIDIA GeForce RTX 5070 Ti
title: ea3b5e4d
seconds: 480
exit: 0x0
frames shown: 1776 (PresentX 1777)
presents per 2 s (last 3): 1 2 1
device removals: 0
crashes: 0
peak commit: 37124 MB

Not tested

  • AMD, Intel, Wine. Titles other than this one. The measurements above were taken with the same code behind a switch (XCL_PARK_SPARES=1); this PR has no switch.

AI use

  • Claude Code (Claude Opus 5.5) wrote the change and its test, ran the tests and the title runs, and wrote this description.
**@⁠Kalmarv** on GitHub · 2026-11-27 01:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936) `Kalmarv:park-spares` → `main` · +41 −0 · 3 files · 1 commits · open A title list's extra segments (mid-list splits) are parked as spares at the list's next Reset, and the segments KickoffX takes back become spares too. A spare records again only after its own later Reset, but `alloc_pool` still counted it as a user of the PC allocator it last recorded on, so that allocator never became free. Every later Reset of the title's allocator while those were "in use" put one more PC allocator aside, and none was ever reused or released. The previous recording a stand-in replaces at Reset pinned its allocator the same way. On the title this is a host GPU memory step of several GB about 160-180 s into the world that never comes back. **What is in it** - `alloc_pool::park_list`: drops a list from its allocator's users; the allocator's own submit marks stay, so it is reused only once the GPU is past them (`alloc_pool.rs`, with the test `a_parked_spare_no_longer_holds_its_allocator`). - `title_list::reset` parks the moved segments and the recording a stand-in replaces (`title_list.rs`); `kickoff_x` parks its reclaimed segments after both submits (`list_x.rs`). **Tested** - RTX 5070 Ti (driver 610.74), Windows 11 Pro 26200, Rust 1.99.0 MSVC, DXC 1.9 via `XCL_DXC_DIR`. - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4` on cae11a79: 1447 passed, 0 failed, 47 ignored. 25 `SKIPPED`: 21 no wave64, 3 refused per-lane f16 forms, 1 no heap windows. - Title, Series X profile, 240 s untimed runs with object counts in the activity log, 100 s to 240 s (same build otherwise, the change behind a switch then): - PC allocators: 1,137 -> 1,928 without; 728-753 -> 862-897 with. - Non-local video memory: 6.2 -> 9.6 GB without; 5.0 -> 5.4-5.5 GB with (about 4 GB less at 240 s). - Timed pairs, fps over 187-229 s: 11.99 and 10.76 without, 10.76 and 11.76 with (run-to-run spread is about 10 %), so no frame-rate cost. **Regression run** - 480 s smoke pair on main's cache from an offline `xcl shaders --precompile --pipelines` (this PR changes no shader translation, so its keys are main's; at 60 s a run on current main ends inside the startup shader preparation of #2555). Same env as the timed runs' base (`XCL_HEAP_WINDOWS=1 XCL_DIRECT_DXIL=all XCL_DIRECT_SPLIT_INSTRUCTIONS=0 XCL_PSO_JOURNAL=0 XCL_DRED=1`, DXC 1.9), no switch of this PR set, the same button presses. main 8b957bec: ``` xcl-smoke v1 commit: 8b957bec6f82495aec940944c6bf47faa02db590 gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 480 exit: 0x0 frames shown: 1687 (PresentX 1687) presents per 2 s (last 3): 1 2 1 device removals: 0 crashes: 0 peak commit: 38717 MB ``` cae11a79: ``` xcl-smoke v1 commit: cae11a796aa424700977d6d5b28082fc5ebe172e gpu: NVIDIA GeForce RTX 5070 Ti title: ea3b5e4d seconds: 480 exit: 0x0 frames shown: 1776 (PresentX 1777) presents per 2 s (last 3): 1 2 1 device removals: 0 crashes: 0 peak commit: 37124 MB ``` **Not tested** - AMD, Intel, Wine. Titles other than this one. The measurements above were taken with the same code behind a switch (`XCL_PARK_SPARES=1`); this PR has no switch. **AI use** - Claude Code (Claude Opus 5.5) wrote the change and its test, ran the tests and the title runs, and wrote this description.
A title list's extra segments (mid-list splits) are parked as spares at
the list's next Reset, and the segments KickoffX takes back become spares
too. A spare records again only after its own later Reset, but alloc_pool
still counted it as a user of the PC allocator it last recorded on, so that
allocator was never free: each later Reset of the title's allocator while
those were "in use" put another PC allocator aside, and none was ever
reused or released. The previous recording a stand-in replaces at Reset
pinned its allocator the same way.

alloc_pool::park_list drops the list from its allocator's users (its
submit marks stay, so the allocator is reused only once the GPU is past
them). title_list::reset parks the moved segments and the replaced
recording; KickoffX parks its reclaimed segments after both submits.

Measured on the title (RTX 5070 Ti, Series X profile, 240 s untimed runs,
object counts from 100 to 240 s): PC allocators 1,137 -> 1,928 without,
728-753 -> 862-897 with; non-local video memory 6.2 -> 9.6 GB without,
5.0 -> 5.4-5.5 GB with (about 4 GB less at 240 s). Timed pairs showed no
frame-rate cost (late window 11.99 / 10.76 fps without, 10.76 / 11.76 with;
run-to-run spread ~10 %).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:06:19 +00:00
Author
Owner

@⁠ettehn on GitHub · 2026-11-27 01:30 UTC · original

Independent GPU fence check on cae11a79, native Windows with an RTX 5070 Ti Laptop (NVIDIA 621.24). I added a local test to the allocator pool module and ran it with the existing tests: 6 passed, 0 failed, 0 skipped.

The test holds a real D3D12 queue behind a fence, submits a closed command list and calls park_list before the GPU can finish. Parking detached the list from its recording allocator while both the list and allocator still reported an in-flight submit. The first allocator reset chose a different backing. After releasing the queue and waiting for completion, the next reset could reuse the original backing while another recording still held the second one. The device remained healthy.

This checks the allocator-pool transition directly. It does not exercise the title-side KickoffX or Reset callers or measure retail memory usage. OpenAI Codex (6.2sol) assisted with verification.

**@⁠ettehn** on GitHub · 2026-11-27 01:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7207339856) Independent GPU fence check on `cae11a79`, native Windows with an RTX 5070 Ti Laptop (NVIDIA 621.24). I added a local test to the allocator pool module and ran it with the existing tests: 6 passed, 0 failed, 0 skipped. The test holds a real D3D12 queue behind a fence, submits a closed command list and calls `park_list` before the GPU can finish. Parking detached the list from its recording allocator while both the list and allocator still reported an in-flight submit. The first allocator reset chose a different backing. After releasing the queue and waiting for completion, the next reset could reuse the original backing while another recording still held the second one. The device remained healthy. This checks the allocator-pool transition directly. It does not exercise the title-side `KickoffX` or `Reset` callers or measure retail memory usage. OpenAI Codex (6.2sol) assisted with verification.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-27 01:32 UTC · original

Tested: production head cae11a796aa424700977d6d5b28082fc5ebe172e (base 8b957bec6f82495aec940944c6bf47faa02db590) under Wine11/Linux6.17, RTX4060 Laptop8GiB/NVIDIA590.48.1, i7-13620H/15693MiB RAM, Rust1.98.1 Windows-MSVC. Diagnostic-relaxed vkd3d 2576c0b4adfae4a+, NVIDIA masking disabled: not stock-runtime certification.

alloc_pool::tests::: 6 passed,0 failed,0 ignored,0.72s; fresh intended-worktree Compiling xcl26.62s. No silent GPU skips. Two owner fixtures create the real NVIDIA device: recording survival across allocator Reset, and detection of a still-pending resubmit. The latter uses a CPU-signaled native fence, not an intentionally stalled GPU queue. No shader rendering claim.

XCL_SOURCE_DIR="$PWD/xcl-pr2936" DXVK_CONFIG='dxgi.hideNvidiaGpu = False' \
 /usr/bin/bash .compat-tools/cargo-xcl-wine.sh \
 test --locked --target x86_64-pc-windows-msvc -p xcl --lib \
 hle::d3d12x::alloc_pool::tests:: -- --nocapture --test-threads=1

Local test-only strengthening, production unchanged: required successful device creation in the two optional-device tests; parameterized the existing synthetic-fence release fixture to additionally call park_list for both recordings. That additional sixth check verifies: parking one list preserves the other recording; parking both removes recording holds but retains the pending fence and prevents backing reuse; duplicate parking is harmless; advancing the synthetic fence makes the backing reusable. This does not exercise real GPU completion races or multiple outstanding queues.

Evidence: .compat-runtime/logs/verify-xcl-pr2936-allocator-lifetime-20261127T012945Z/ (command.json, provenance.txt, console.log, resources.jsonl, result.json). Guarded scope9GiB/512MiB, unchanged2048MiB available-RAM/6000MiB GPU/10GiB disk floors. Sampled minimum availableRAM9783.1MiB, GPUpeak138MiB; this short fixture is not an allocator-memory benchmark.

Not tested: matched parent, retail title, full suite, AMD/Intel, stock vkd3d, or the claimed ~4GB non-local saving on this machine. Our earlier XCL Game-Init stuck fence/watchdog is a separate unresolved path; this pass is not evidence that it is fixed. Suggested addition: retain a parked-spare regression with a pending fence, and cover last_submit/stand-in selection plus more than one queue before calling the lifecycle fully covered.

AI assistance: omp (openai-codex/gpt-6-astra) for local test adaptation, review and this report. All results above came from the named local run.

**@⁠pickles976** on GitHub · 2026-11-27 01:32 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7207372959) **Tested:** production head `cae11a796aa424700977d6d5b28082fc5ebe172e` (base `8b957bec6f82495aec940944c6bf47faa02db590`) under Wine11/Linux6.17, RTX4060 Laptop8GiB/NVIDIA590.48.1, i7-13620H/15693MiB RAM, Rust1.98.1 Windows-MSVC. Diagnostic-relaxed vkd3d `2576c0b4adfae4a+`, NVIDIA masking disabled: **not stock-runtime certification**. `alloc_pool::tests::`: **6 passed,0 failed,0 ignored**,0.72s; fresh intended-worktree `Compiling xcl`26.62s. No silent GPU skips. Two owner fixtures create the real NVIDIA device: recording survival across allocator Reset, and detection of a still-pending resubmit. The latter uses a CPU-signaled native fence, not an intentionally stalled GPU queue. No shader rendering claim. ```sh XCL_SOURCE_DIR="$PWD/xcl-pr2936" DXVK_CONFIG='dxgi.hideNvidiaGpu = False' \ /usr/bin/bash .compat-tools/cargo-xcl-wine.sh \ test --locked --target x86_64-pc-windows-msvc -p xcl --lib \ hle::d3d12x::alloc_pool::tests:: -- --nocapture --test-threads=1 ``` **Local test-only strengthening, production unchanged:** required successful device creation in the two optional-device tests; parameterized the existing synthetic-fence release fixture to additionally call `park_list` for both recordings. That additional sixth check verifies: parking one list preserves the other recording; parking both removes recording holds but retains the pending fence and prevents backing reuse; duplicate parking is harmless; advancing the synthetic fence makes the backing reusable. This does not exercise real GPU completion races or multiple outstanding queues. Evidence: `.compat-runtime/logs/verify-xcl-pr2936-allocator-lifetime-20261127T012945Z/` (`command.json`, `provenance.txt`, `console.log`, `resources.jsonl`, `result.json`). Guarded scope9GiB/512MiB, unchanged2048MiB available-RAM/6000MiB GPU/10GiB disk floors. Sampled minimum availableRAM9783.1MiB, GPUpeak138MiB; this short fixture is not an allocator-memory benchmark. **Not tested:** matched parent, retail title, full suite, AMD/Intel, stock vkd3d, or the claimed ~4GB non-local saving on this machine. Our earlier XCL Game-Init stuck fence/watchdog is a separate unresolved path; this pass is not evidence that it is fixed. Suggested addition: retain a parked-spare regression with a pending fence, and cover `last_submit`/stand-in selection plus more than one queue before calling the lifecycle fully covered. AI assistance: omp (`openai-codex/gpt-6-astra`) for local test adaptation, review and this report. All results above came from the named local run.
Author
Owner

@⁠andrewDoing on GitHub · 2026-11-27 02:01 UTC · original

Independent pending-fence checks on RTX 5070 at PR head cae11a796aa424700977d6d5b28082fc5ebe172e, with test-only fixtures. In the first test, parking two sibling lists removed their recording holds, but the allocator remained unavailable while submitted work was gated. After queue completion it became reusable, with a healthy device.

A second test submitted two parked lists on different queues. Draining only queue A did not release the backing still held by queue B; after B completed, the backing became reusable. Both tests passed without reported skips. These checks exercise bookkeeping and real queue fences, not title Reset/KickoffX end to end or GTA VI memory savings.

AI use: OpenAI Codex with GPT-6.2 Astra wrote and ran the fixtures; Codex coordinated and prepared this report.

**@⁠andrewDoing** on GitHub · 2026-11-27 02:01 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7207762443) Independent pending-fence checks on RTX 5070 at PR head `cae11a796aa424700977d6d5b28082fc5ebe172e`, with test-only fixtures. In the first test, parking two sibling lists removed their recording holds, but the allocator remained unavailable while submitted work was gated. After queue completion it became reusable, with a healthy device. A second test submitted two parked lists on different queues. Draining only queue A did not release the backing still held by queue B; after B completed, the backing became reusable. Both tests passed without reported skips. These checks exercise bookkeeping and real queue fences, not title Reset/KickoffX end to end or GTA VI memory savings. AI use: OpenAI Codex with GPT-6.2 Astra wrote and ran the fixtures; Codex coordinated and prepared this report.
Author
Owner

@⁠luckyteagirl on GitHub · 2026-11-27 05:41 UTC · original · reviewed

The new a_parked_spare_no_longer_holds_its_allocator fixture depends on the caller's XCL_ALLOC_SWAP setting. In a fresh test process with XCL_ALLOC_SWAP=0, created_on returns before it creates the backing, then the fixture unconditionally unwraps STATE and indexes the missing backing. With the switch enabled, the fixture also leaves its synthetic allocator and recording keys in global state after the backing storage for those IDs is dropped. Could the test exercise the parking transition on a local State, as the neighboring reset test does? Fixture · Environment gate

AI use: OpenAI Codex (GPT-6.2 Sol) reviewed the exact source and drafted this comment. I did not run the fixture.

**@⁠luckyteagirl** on GitHub · 2026-11-27 05:41 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#pullrequestreview-6083950569) · **reviewed** The new `a_parked_spare_no_longer_holds_its_allocator` fixture depends on the caller's `XCL_ALLOC_SWAP` setting. In a fresh test process with `XCL_ALLOC_SWAP=0`, `created_on` returns before it creates the backing, then the fixture unconditionally unwraps `STATE` and indexes the missing backing. With the switch enabled, the fixture also leaves its synthetic allocator and recording keys in global state after the backing storage for those IDs is dropped. Could the test exercise the parking transition on a local `State`, as the neighboring reset test does? [Fixture](https://github.com/xcl-dev/xcl/blob/cae11a796aa424700977d6d5b28082fc5ebe172e/crates/xcl/src/hle/d3d12x/alloc_pool.rs#L350-L364) · [Environment gate](https://github.com/xcl-dev/xcl/blob/cae11a796aa424700977d6d5b28082fc5ebe172e/crates/xcl/src/hle/d3d12x/alloc_pool.rs#L149-L158) AI use: OpenAI Codex (GPT-6.2 Sol) reviewed the exact source and drafted this comment. I did not run the fixture.
Author
Owner

@⁠throny on GitHub · 2026-11-27 06:08 UTC · original

Two contributors checked independently and found that #1071 #1453 #2707 solves the same problem in a different way: #1607, group D147. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

**@⁠throny** on GitHub · 2026-11-27 06:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7211254417) <!-- xcl-1607-hint:D147 --> Two contributors checked independently and found that #1071 #1453 #2707 solves the same problem in a different way: #1607, group D147. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Author
Owner

@⁠Anon64 on GitHub · 2026-11-27 06:08 UTC · original · edited 2026-11-27 09:25 UTC

Smoke runs of cae11a79 against its base 8b957bec, on a 12 GB Ampere card. No regression, but this machine cannot show the fix: the title stops presenting before it gets to the point where the step happens.

Setup: NVIDIA GeForce RTX 3060 12 GB, i9-14900KF, 64 GB RAM, Windows 11 26200, Rust 1.100.0 MSVC release, DXC 1.9.2609.5. xcl run on the same retail title, warm caches, A presses scripted, XCL_NETWORK=0. Same machine and settings for both trees, run back to back.

run tree frames device removals crashes peak commit non-local at 240 s
60 s base 1335 0 0 26.4 GB –
60 s PR 1389 / 1349 (2 runs) 0 0 25.7 / 26.2 GB –
240 s base 1492 0 0 31.0 GB 4801 MB
240 s PR 1508 0 0 33.2 GB 4740 MB

In both 240 s runs presents stop at about 75–90 s into the run, during world loading. That is the 12 GB-card stall this title already has on main, not something this PR adds: the base does the same. Non-local memory is flat from 120 s on in both (base 4.80 GB, PR 4.74 GB), so the several-GB step at 160–180 s into the world from the description never occurs here, with or without the PR. The PR's peak commit was 2.2 GB higher in the 240 s pair, but the 60 s pairs went the other way, so I read it as run-to-run noise rather than an effect.

Not tested: the full test suite on this tree, a card that gets far enough into the world to see the step, AMD.

Regression run (240 s), base then PR:

xcl-smoke v1
commit: 8b957bec6f82495aec940944c6bf47faa02db590
gpu: NVIDIA GeForce RTX 3060
seconds: 240
exit: 0x0
frames shown: 1492 (PresentX 1492)
presents per 2 s (last 3): 0 0 0
device removals: 0
crashes: 0
peak commit: 30989 MB
xcl-smoke v1
commit: cae11a796aa424700977d6d5b28082fc5ebe172e
gpu: NVIDIA GeForce RTX 3060
seconds: 240
exit: 0x0
frames shown: 1508 (PresentX 1508)
presents per 2 s (last 3): 2 3 2
device removals: 0
crashes: 0
peak commit: 33198 MB

AI use: Claude Code (Claude Opus 5.5) ran the builds and smoke runs and wrote this report.

**@⁠Anon64** on GitHub · 2026-11-27 06:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7211256476) · edited 2026-11-27 09:25 UTC Smoke runs of `cae11a79` against its base `8b957bec`, on a 12 GB Ampere card. No regression, but this machine cannot show the fix: the title stops presenting before it gets to the point where the step happens. **Setup:** NVIDIA GeForce RTX 3060 12 GB, i9-14900KF, 64 GB RAM, Windows 11 26200, Rust 1.100.0 MSVC release, DXC 1.9.2609.5. `xcl run` on the same retail title, warm caches, A presses scripted, `XCL_NETWORK=0`. Same machine and settings for both trees, run back to back. | run | tree | frames | device removals | crashes | peak commit | non-local at 240 s | |---|---|---:|---:|---:|---:|---:| | 60 s | base | 1335 | 0 | 0 | 26.4 GB | – | | 60 s | PR | 1389 / 1349 (2 runs) | 0 | 0 | 25.7 / 26.2 GB | – | | 240 s | base | 1492 | 0 | 0 | 31.0 GB | 4801 MB | | 240 s | PR | 1508 | 0 | 0 | 33.2 GB | 4740 MB | In both 240 s runs presents stop at about 75–90 s into the run, during world loading. That is the 12 GB-card stall this title already has on `main`, not something this PR adds: the base does the same. Non-local memory is flat from 120 s on in both (base 4.80 GB, PR 4.74 GB), so the several-GB step at 160–180 s into the world from the description never occurs here, with or without the PR. The PR's peak commit was 2.2 GB higher in the 240 s pair, but the 60 s pairs went the other way, so I read it as run-to-run noise rather than an effect. **Not tested:** the full test suite on this tree, a card that gets far enough into the world to see the step, AMD. **Regression run (240 s)**, base then PR: ``` xcl-smoke v1 commit: 8b957bec6f82495aec940944c6bf47faa02db590 gpu: NVIDIA GeForce RTX 3060 seconds: 240 exit: 0x0 frames shown: 1492 (PresentX 1492) presents per 2 s (last 3): 0 0 0 device removals: 0 crashes: 0 peak commit: 30989 MB ``` ``` xcl-smoke v1 commit: cae11a796aa424700977d6d5b28082fc5ebe172e gpu: NVIDIA GeForce RTX 3060 seconds: 240 exit: 0x0 frames shown: 1508 (PresentX 1508) presents per 2 s (last 3): 2 3 2 device removals: 0 crashes: 0 peak commit: 33198 MB ``` **AI use:** Claude Code (Claude Opus 5.5) ran the builds and smoke runs and wrote this report.
Author
Owner

@⁠retrope13 on GitHub · 2026-11-27 06:20 UTC · original

Verified PR #2936 (cae11a79) independently on Windows 11 across NVIDIA Ada Lovelace (8 GB) and Intel UHD Graphics (covering the untested Intel hardware gap for allocator/command-list tests) and audited the lifetime invariants across alloc_pool.rs, title_list.rs, and list_x.rs. All tests passed cleanly with zero failures.

Environment

  • OS: Windows 11 26H2 (build 26300.9818)
  • CPU / RAM: Intel Core i5-14500HX (14C/20T), 24 GB RAM
  • GPUs:
    • NVIDIA GeForce RTX 4060 Laptop GPU (8 GB, Ada Lovelace, wave32, driver 32.0.16.2140)
    • Intel(R) UHD Graphics (driver 32.0.101.7092)
  • Toolchain: rustc 1.100.0 (stable-x86_64-pc-windows-msvc), VS 2022 Build Tools 17.14.45, Windows SDK 10.0.26100.0 (DXC 1.9.2602.17)

Test Results (cae11a79)

Command Adapter Result
cargo test --locked -p xcl --lib -- hle::d3d12x::alloc_pool:: -- --test-threads=1 Intel(R) UHD Graphics 5 passed, 0 failed (0.36s, includes a_parked_spare_no_longer_holds_its_allocator and GPU a_recording_outlives_the_reset_of_the_titles_allocator)
cargo test --locked -p xcl --lib -- hle::d3d12x::title_list:: -- --test-threads=1 Intel(R) UHD Graphics 3 passed, 0 failed (0.03s)
cargo test --locked -p xcl --lib -- hle::d3d12x::list_x:: -- --test-threads=1 Intel(R) UHD Graphics 40 passed, 0 failed (0.99s)
cargo test --locked -p xcl --test d3d12_command_objects_and_root_sig --test d3d12_command_queue --test d3d12_resource_and_sync -- --test-threads=1 Intel(R) UHD Graphics 7 passed, 0 failed (3 + 1 + 3)
cargo build --workspace --locked && cargo test --workspace --locked --no-fail-fast -- --test-threads=4 NVIDIA RTX 4060 Laptop (XCL_ADAPTER=NVIDIA) 1,447 passed, 0 failed, 47 ignored (29 capability/SDK SKIPPED lines on wave32 without Graphics Tools/Developer Mode)

Diff Review Notes

  • Lifetime invariants verified:
    • alloc_pool::park_list drops list from of_list and backings[backing].users while leaving backings[backing].marks and last_submit (in_flight) untouched, so backing allocators cannot be reused until the GPU finishes their submit fences.
    • list_x::kickoff_x (list_x.rs:3382) parks reclaimed segments strictly after both alloc_pool::executed calls (3336, 3355), so fence marks are already attached to their backing allocators before parking.
    • title_list::reset (title_list.rs:199,203) parks moved segments and, when a stand-in replaces an in-flight primary, parks primary without disturbing in_flight(primary).
  • Minor non-blocking note (crates/xcl/src/hle/d3d12x/list_x.rs:2602-2619):
    • In reset_stand_in, when a freshly created list (on_create → alloc_pool::created_on) fails Close (2609) or reset_pc (2616), it is parked via title_list::put_spare(wrapper, ...) without calling alloc_pool::park_list, so on that rare failure path the unused spare would continue pinning pc_alloc until popped and reset later. Calling alloc_pool::park_list(pc as usize) inside title_list::put_spare (or on those two error returns) would cover that path too.

Not Tested

  • Live retail title memory / FPS measurements (no retail title files used).
  • AMD, Wine, or native wave64 hardware.
  • The 47 #[ignore] tests in the workspace suite.

(AI disclosure: diff review, test execution commands, and summary formatting were assisted by Antigravity / Gemini 4; all tests were executed locally on the hardware listed above.)

**@⁠retrope13** on GitHub · 2026-11-27 06:20 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7211446305) Verified PR #2936 (`cae11a79`) independently on Windows 11 across **NVIDIA Ada Lovelace (8 GB)** and **Intel UHD Graphics** (covering the untested Intel hardware gap for allocator/command-list tests) and audited the lifetime invariants across `alloc_pool.rs`, `title_list.rs`, and `list_x.rs`. All tests passed cleanly with zero failures. ### Environment - **OS:** Windows 11 26H2 (build `26300.9818`) - **CPU / RAM:** Intel Core i5-14500HX (14C/20T), 24 GB RAM - **GPUs:** - NVIDIA GeForce RTX 4060 Laptop GPU (8 GB, Ada Lovelace, wave32, driver `32.0.16.2140`) - Intel(R) UHD Graphics (driver `32.0.101.7092`) - **Toolchain:** `rustc 1.100.0` (`stable-x86_64-pc-windows-msvc`), VS 2022 Build Tools `17.14.45`, Windows SDK `10.0.26100.0` (DXC `1.9.2602.17`) ### Test Results (`cae11a79`) | Command | Adapter | Result | | --- | --- | --- | | `cargo test --locked -p xcl --lib -- hle::d3d12x::alloc_pool:: -- --test-threads=1` | **Intel(R) UHD Graphics** | **5 passed, 0 failed** (`0.36s`, includes `a_parked_spare_no_longer_holds_its_allocator` and GPU `a_recording_outlives_the_reset_of_the_titles_allocator`) | | `cargo test --locked -p xcl --lib -- hle::d3d12x::title_list:: -- --test-threads=1` | **Intel(R) UHD Graphics** | **3 passed, 0 failed** (`0.03s`) | | `cargo test --locked -p xcl --lib -- hle::d3d12x::list_x:: -- --test-threads=1` | **Intel(R) UHD Graphics** | **40 passed, 0 failed** (`0.99s`) | | `cargo test --locked -p xcl --test d3d12_command_objects_and_root_sig --test d3d12_command_queue --test d3d12_resource_and_sync -- --test-threads=1` | **Intel(R) UHD Graphics** | **7 passed, 0 failed** (`3 + 1 + 3`) | | `cargo build --workspace --locked && cargo test --workspace --locked --no-fail-fast -- --test-threads=4` | NVIDIA RTX 4060 Laptop (`XCL_ADAPTER=NVIDIA`) | **1,447 passed, 0 failed, 47 ignored** *(29 capability/SDK `SKIPPED` lines on wave32 without Graphics Tools/Developer Mode)* | ### Diff Review Notes - **Lifetime invariants verified:** - `alloc_pool::park_list` drops `list` from `of_list` and `backings[backing].users` while leaving `backings[backing].marks` and `last_submit` (`in_flight`) untouched, so backing allocators cannot be reused until the GPU finishes their submit fences. - `list_x::kickoff_x` (`list_x.rs:3382`) parks reclaimed segments strictly after both `alloc_pool::executed` calls (`3336`, `3355`), so fence marks are already attached to their backing allocators before parking. - `title_list::reset` (`title_list.rs:199,203`) parks moved segments and, when a stand-in replaces an in-flight `primary`, parks `primary` without disturbing `in_flight(primary)`. - **Minor non-blocking note (`crates/xcl/src/hle/d3d12x/list_x.rs:2602-2619`):** - In `reset_stand_in`, when a freshly created list (`on_create` → `alloc_pool::created_on`) fails `Close` (`2609`) or `reset_pc` (`2616`), it is parked via `title_list::put_spare(wrapper, ...)` without calling `alloc_pool::park_list`, so on that rare failure path the unused spare would continue pinning `pc_alloc` until popped and reset later. Calling `alloc_pool::park_list(pc as usize)` inside `title_list::put_spare` (or on those two error returns) would cover that path too. ### Not Tested - Live retail title memory / FPS measurements (no retail title files used). - AMD, Wine, or native wave64 hardware. - The 47 `#[ignore]` tests in the workspace suite. *(AI disclosure: diff review, test execution commands, and summary formatting were assisted by Antigravity / Gemini 4; all tests were executed locally on the hardware listed above.)*
Author
Owner

@⁠LocranKing on GitHub · 2026-11-27 10:00 UTC · original

Tested PR #2936 (cae11a79) against main (8b957bec) on Windows 11 (26300), Ryzen 5 5500 (6C/12T), RTX 3060 Ti 8 GiB (driver 621.40), rustc 1.100.0, DXC 1.9.2602.17.

Unit Test (cargo test --locked -p xcl)

  • hle::d3d12x::alloc_pool::tests::a_parked_spare_no_longer_holds_its_allocator: 1 passed, 0 failed.

Paired 180 s Retail Smoke (9cc6a39e, Series S lockhart, XCL_HEAP_WINDOWS=1, XCL_DIRECT_DXIL=all, XCL_DIRECT_SPLIT_INSTRUCTIONS=0, XCL_PSO_WAIT_MS=50)

Both runs started from identical pre-warmed DXIL/driver cache snapshots and reached the 3D world cleanly:

Build Entry / World load Frames shown Peak commit Peak local VRAM Peak non-local VRAM Console stats logged (t ≈ 240 s) Crashes / Removals
main (8b957bec) 67.2 s / 188.4 s 1240 29,411 MB 14,281 MB 2,241 MB 9,178 draws, 34,068 dispatches; 100 blocks held for 58 allocators 0 / 0 (exit: 0x0)
PR #2936 (cae11a79) 67.2 s / 176.5 s 1413 29,610 MB 14,873 MB 2,104 MB 17,271 draws, 65,536 dispatches; 118 blocks held for 70 allocators 0 / 0 (exit: 0x0)

Peak non-local VRAM was slightly lower (2,104 MB vs 2,241 MB, -137 MB) even while PR #2936 progressed further (17,271 vs 9,178 draws; 294 made / 293 put aside vs 341 made / 341 put aside at 512 resets). No regressions observed.

Not tested: Multi-minute sustained world streaming beyond 180 s (~70.7 s post-world) where spare allocator accumulation becomes larger, or full workspace test suite on cae11a79.

**@⁠LocranKing** on GitHub · 2026-11-27 10:00 UTC · [original](https://github.com/xcl-dev/xcl/pull/2936#issuecomment-7215362688) Tested PR #2936 (`cae11a79`) against `main` (`8b957bec`) on Windows 11 (26300), Ryzen 5 5500 (6C/12T), RTX 3060 Ti 8 GiB (driver `621.40`), `rustc 1.100.0`, DXC `1.9.2602.17`. ### Unit Test (`cargo test --locked -p xcl`) - `hle::d3d12x::alloc_pool::tests::a_parked_spare_no_longer_holds_its_allocator`: `1 passed, 0 failed`. ### Paired 180 s Retail Smoke (`9cc6a39e`, Series S `lockhart`, `XCL_HEAP_WINDOWS=1`, `XCL_DIRECT_DXIL=all`, `XCL_DIRECT_SPLIT_INSTRUCTIONS=0`, `XCL_PSO_WAIT_MS=50`) Both runs started from identical pre-warmed DXIL/driver cache snapshots and reached the 3D world cleanly: | Build | Entry / World load | Frames shown | Peak commit | Peak local VRAM | Peak non-local VRAM | Console stats logged (`t ≈ 240 s`) | Crashes / Removals | | --- | --- | --- | --- | --- | --- | --- | --- | | `main` (`8b957bec`) | `67.2 s` / `188.4 s` | `1240` | `29,411 MB` | `14,281 MB` | `2,241 MB` | `9,178` draws, `34,068` dispatches; `100` blocks held for `58` allocators | `0 / 0` (`exit: 0x0`) | | PR #2936 (`cae11a79`) | `67.2 s` / `176.5 s` | `1413` | `29,610 MB` | `14,873 MB` | `2,104 MB` | `17,271` draws, `65,536` dispatches; `118` blocks held for `70` allocators | `0 / 0` (`exit: 0x0`) | Peak non-local VRAM was slightly lower (`2,104 MB` vs `2,241 MB`, `-137 MB`) even while PR #2936 progressed further (`17,271` vs `9,178` draws; `294 made / 293 put aside` vs `341 made / 341 put aside` at 512 resets). No regressions observed. **Not tested:** Multi-minute sustained world streaming beyond 180 s (`~70.7 s` post-world) where spare allocator accumulation becomes larger, or full workspace test suite on `cae11a79`.
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/2936/head:github-bot/gh-2936'
git switch 'github-bot/gh-2936'

Merge

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