Repository navigation
D3D12.X: release alloc_pool queue fence on queue release - #1967
n-romanovich wants to merge 1 commit into
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Code review on
|
PR #1967 compatibility verificationTested Environment Windows 11 Enterprise Evaluation build 26200.9974, Ryzen 7 3800X, Intel Arc A770 16 GiB with driver 32.0.101.9175. Wave range 8–32, Tested
Of the 25 failures, 20 library tests reported Not tested Baseline on AI use T3 Code / Codex ( |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Fixes xcl-dev#1909. alloc_pool::State.fences retained (ID3D12Fence, u64) per command queue with no cleanup when real::q_release released the queue (refcount 0). Add alloc_pool::on_queue_release(queue), called from real::q_release when n == 0, to remove the queue's retained fence and any already completed backing marks for that queue. Tested: cargo test --workspace -- --test-threads=4. Assisted-by: Antigravity (model name not provided)
61db31a to
4fffef3
Compare
|
Independent Windows check on 4fffef3. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug. The stock allocator-pool tests passed 5/0/0 with zero skips ( I also tested simulated queue-key reuse with native D3D12 fences. An unsignaled fence represented the old queue. The backing stayed busy after the release callback. After a new native submission under the same key completed, the backing reported free while the old fence was still unsignaled. The same fixture on #1945’s f581057 kept the backing busy until I signaled the old fence. The scratch check used |
|
Independent test report for head Tested
Regression run (
PR Not tested: full workspace test suite on this head, NVIDIA/Intel GPUs, Linux/Wine, or world load past the 60 s smoke window. AI use: Antigravity (Gemini 4 Neon) ran the builds, tests, and smoke runs and drafted this report; the account owner reviewed and approved posting. |
|
AMD RX 7800 XT run of Tested
Not tested
AI use
|
|
NVIDIA test report for
AI-assisted (Claude Code, Claude Opus 5.5). Synthetic tests only; no title run. |
bmjask
left a comment
There was a problem hiding this comment.
P1 queue-address reuse: on_queue_release removes State.fences[queue] but leaves incomplete backing marks keyed by raw queue address. If new queue reuses address before old work completes, executed() creates new fence and b.marks.insert overwrites old incomplete mark, allowing backing reuse while old queue still uses it. Key marks by queue generation/fence identity or retain multiple marks; add release-with-incomplete-submit then same-address-reuse regression. Current test waits completion before release and misses this.
21fae63 to
4fffef3
Compare
|
Independent NVIDIA test report on exact head Tested
Regression run main: PR: Not tested
AI use
|
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Fixes #1909.
alloc_pool::State.fencespreviously retained(ID3D12Fence, u64)per command queue indefinitely with no cleanup whenreal::q_releasereleased the queue at refcount 0.This PR adds
alloc_pool::on_queue_release(queue), called fromreal::q_releasewhenn == 0, to drop the queue's retained fence fromState.fencesand clear any already-completedBacking.marksentries for that queue (while leaving in-flight marks alive until completion/reset).What is in it
crates/xcl/src/hle/d3d12x/alloc_pool.rs: addon_queue_release(queue)and unit testreleased_queue_drops_retained_fence_from_state.crates/xcl/src/hle/d3d12x/real.rs: callsuper::alloc_pool::on_queue_release(this as usize)inq_releasewhenn == 0.Tested
Hardware: Windows 11 x64, NVIDIA GeForce RTX 5060 Ti.
cargo test -p xcl --lib alloc_pool -- --test-threads=4: 4 passed, 0 failed, 0 ignored (961 filtered out)cargo test --workspace -- --test-threads=4: 989 passed, 0 failed, 45 ignoredSKIPPED: 22gpu::recompwave64 / refused per-lane f16 tests (no wave64/ refused per-lane f16),shaders::tests::pso_measurement_compiles_an_exact_synthetic_record(Windows Developer Mode is required,0x887A002D),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows)Regression run
Main (
5478c4a7c1ae5adba127c8d27018d7fdbf3a8725):PR (
4fffef38d1edb0be45b3c51859b0f711e7f85098):Not tested
AI use
smoke.ps1runs.