D3D12.X: reclaim two-pass buffers on submit fence completion #2815
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2815
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2815"
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?
@coolpersonnn on GitHub · 2026-11-26 14:22 UTC · original
coolpersonnn:ws2/two-pass-fence-reuse→nvidia-dev· +412 −39 · 2 files · 1 commits · openReclaim retired two-pass mesh record and scratch buffers as soon as their GPU command queue fence completes, instead of waiting for the title to reset the command allocator or hitting the 10 s
UNKNOWN_RESfallback timeout.Part of #2688
What is in it
bindand hand them over to per-queueFencedBatchentries insidetwo_pass_submittedcalled fromalloc_pool::executedon realExecuteCommandListssubmission (keeping split segments linked across splits and retiring untracked/bundled recordings back throughALLOC_RES).FencedBatchbuffers on acquisition before checking the cap, and report live fence-held MiB in the periodictwo-pass buffers:summary (waiting for GPU fences).ALLOC_RES.Tested
26200/26300), Ryzen 9 9950X3D, 95,800 MB RAM, NVIDIA GeForce RTX 5090 (32 GB, driver621.01, DXC1.8.2502.11),rustc 1.100.0, release + test builds.cargo test --workspace --no-fail-fast -- --test-threads=4: 1,745 passed, 10 failed, 48 ignored across 41 test binaries; 27 explicitSKIPPEDGPU tests (hle::d3d12x::bind: 38 passed incl. 1SKIPPED two_pass_binds_set_the_shared_view_heap: no heap windows;hle::d3d12x::alloc_pool: 8 passed). All 10 failures are pre-existing failures also present on unmodifiednvidia-dev(af2cecc4).cargo build --release -p xcl --bin xcl: exited 0.#2688WS2, measured through PR 3 ontitle: a93b40d7over warm-cache 120 s runs): drops world-entry two-pass alive memory from998 MiB(598 MiBwaiting for allocator resets) to129 MiB(0 MiBwaiting), eliminating73past-cap skips with0device removals and0crashes.Regression run
Not tested
nvidia-devaf2cecc4by pre-existing multi-minute compute-PSO driver compiles at world entry when the full world shader cache is absent).XCL_HEAP_WINDOWS=1heap-window test (two_pass_binds_set_the_shared_view_heapskipped by default).AI use
@thehollowedone on GitHub · 2026-11-26 14:45 UTC · original
Independent Windows/NVIDIA check of #2815 head
71b1a932against its cleannvidia-devbaseaf2cecc4. I rancargo build --offline --locked --workspace, thencargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4withXCL_ADAPTER=3080and a persistent local DXIL test cache. Windows 11 build 26300, RTX 3080 Ti / driver 621.35, Ryzen 7 9800X3D, rustc 1.99.1 MSVC, DXC 1.8.2502.11.SKIPPEDnoticesaf2cecc471b1a932The same six named tests failed in both runs: two
texture_uploadtests,console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly,async_compute_pso_registers_real_pso_and_not_standin, and twotwo_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsinstances. The head adds four passing tests. Of the 26 skip notices, 21 require wave64, three per-lane forms were refused, and two heap-window cases were disabled in the default run; I do not count skips as coverage.I also ran the opt-in
two_pass_binds_set_the_shared_view_heapfixture separately on both revisions withXCL_HEAP_WINDOWS=1:cargo test --offline --locked -p xcl --lib two_pass_binds_set_the_shared_view_heap -- --nocapture --test-threads=1. Each passed 1/1 with no skip. This synthetic check exercises the opt-in descriptor-heap binding path; it does not measure an in-world memory saving.Not tested: paired retail-title smoke, sustained world load, AMD/Intel, or the full workspace suite with heap windows enabled. These results alone do not establish merge readiness.
AI use: Codex (GPT-6.2 Sol) ran the builds and tests, compared the exact base and head results, and drafted this report.
@nnonno91 on GitHub · 2026-11-26 15:21 UTC · original
Independent RTX 5090 world-load check of #2815. I ran the clean
nvidia-devbaseaf2cecc40886a8682ecf3267f5328c6dc4b66ad7and the clean PR head71b1a93201456a655a5b23fe45348257c0658018on Windows 11 26200, RTX 5090 32 GB (driver 617.42), Ryzen 7 9800X3D, and 32 GB RAM.One 115 s release smoke run per revision, base first, using workload
9cc6a39e, identical copies of the offline profile, and shared shader and driver caches. Both reached world loading and stopped presenting before playable gameplay. Both timed runs exited0x0. This shows the reuse path firing during loading. Sustained in-world memory and FPS remain unmeasured.Ran
scripts/smoke.ps1 -Game <workload> -Xcl <release exe> -Seconds 115withXCL_ADAPTER=RTX 5090,XCL_NETWORK=0,XCL_ACTIVITY=1,XCL_PREPARE=0,XCL_DIRECT_DXIL=1,XCL_HEAP_WINDOWS=1,XCL_UMA_SHADOW=1,XCL_COHERENT_HEAPS=sparse:16,XCL_LOOK_SKIP=1,XCL_LOOK_STATS=2,XCL_TWO_PASS_MB=1024,XCL_GFX_PSO_WAIT_MS=150, andXCL_PRESS_AT=16:A,23:A,30:A.AI use — Codex built the exact revisions, ran the smoke tests, and summarized the logs.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.