Repository navigation
D3D12.X: release retired sparse heaps on ordinary submits - #1837
gloger2003 wants to merge 1 commit into
Conversation
Keep the sparse fence and reuse delay checks active on submissions that do not unmap any parked tiles. A native D3D12 test verifies retirement, reuse, the age and fence guards, and release without any newly parked mapping. Part of xcl-dev#1773 Assisted-by: OpenAI Codex (GPT-6.2 Sol)
|
NVIDIA test report for Tested
Regression run ( base ( this PR: Not tested: the world load (the smoke runs stop at the start screen, so code that only runs later is not exercised there); AMD. AI use: Claude Code (Claude Opus 5.5) built and ran the tests and smoke runs on my machine and wrote this report; I checked it. |
lewisnic94-max
left a comment
There was a problem hiding this comment.
I reviewed ec610d9771c0e56b7ceacda6648ec27925160f11. The ordinary-submit path retained a recently retired sparse pool for reuse. After the fixture aged the pool past the two-second window, a submit with no parked mappings still retained it while its fence was pending. Signalling the recorded fence value let the next ordinary submit release it. I found no actionable defect in these retirement and fence transitions.
cargo test --offline --locked -p xcl --lib hle::d3d12x::sparse::tests -- --test-threads=1 reported 14 passed, 0 failed, 1 ignored (early_commit_timing), and 0 skip notices. Windows 11 build 26200.9974, Ryzen 7 5800X, RTX 3080 driver 616.92, debug MSVC Rust 1.100.0. This synthetic test did not measure long-running title residency or sustained VRAM pressure.
Codex (GPT-6) traced the release and reuse paths, ran the sparse suite and checked the fence assertions.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
PR #1837 — D3D12.X retired sparse heaps on ordinary submitsTested detached head Environment Windows 11 Enterprise Evaluation build 26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 16 GiB (driver 32.0.101.9175, wave range 8–32, Tested
Failures and skips
Not tested No AI use T3 Code / Codex ( |
|
Wine / RTX 4060 Laptop verification of Tree and host: ports onto the mixed integration described in my #751 report, including that Wine guard-page correction; not either clean PR head. I retained the integration's existing Focused regression: Bounded title loading: saved setup profile, warm caches, Lockhart profile, The new accounting produced 33 samples. Retired capacity changed through Limits: host workload changed during the run, and this stopped earlier than the preceding VRAM-limited run. This is not a comparable memory/performance A/B result, a measured memory saving, gameplay, or a 15-minute stability result. I did not weaken either resource guard. AI assistance: omp / openai-codex/gpt-6-astra ported and tested the existing PRs, inspected the measurements, and drafted/submitted this report at the repository owner's request. Follow-up: restored system-RAM headroomRepeated the same local integration after the user closed Firefox: available RAM at launch 12,410.7 MiB, board VRAM 186 MiB. This time the guard stopped at 110.45 s / 7,542 MiB VRAM, with 2,932.2 MiB RAM available and 13.399 GiB disk free (launcher 143). It was the VRAM threshold, not the previous RAM stop. No unhandled-exception/device-loss/OOM markers were found in the console log; untranslated mesh-pipeline errors still occur. Adjacent memory diagnostics show retired heaps 384 → 0 MiB, with DXGI local usage 6,961 → 6,581 MiB. Later, render-target pages reached 2,409 MiB in 2,624 MiB pools; active sparse pools were 3,648 MiB, with 2,411 MiB occupied, zero parked mappings and zero retired. Thus completed-heap reclamation is observable, but this integration still does not fit the loading phase inside the 7,500 MiB board-VRAM safety threshold. The unused capacity inside active sparse pools is distinct from retired heaps. No 15-minute gameplay or 30-fps claim. The two runs are not a controlled performance comparison; closing the browser changed host load. |
Part of #1773. Sparse heaps pending release used to be revisited on submission only when the submission unmaps parked tiles. A steady workload could keep submitting commands after the heap's fence and reuse delay had passed while the heap remained held.
What is in it
Tested
Regression run
Minecraft Preview, identical 1x MSAA profile.
Not tested
AI use