Repository navigation
D3D12.X: fence sparse tile reuse after the last placed-buffer pin - #2531
razormontana wants to merge 1 commit into
Conversation
A decommitted sparse tile can stay pinned after the window unmap is queued. Queue its eventual last unpin for the existing fence retirement path before the tile can enter the free list. Mark the sparse queue and title queues from an allocation or submission, outside the Release callback. Part of xcl-dev#2457 (item 1) and xcl-dev#1773.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Test run on exact head Tested
Regression run (60 s, default settings, a retail title) main: this PR: No crash or device removal; frames 104 % of Not tested
AI use
|
|
Independent AMD RDNA4 (native wave64) verification of exact PR head Tested
(Compare against Not tested
AI use
|
|
Tested: current PR head merged onto current
Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
…cl-dev#2531 + xcl-dev#2638) (cherry picked from commit fa5b533156ecdf632edcb1b703c54a16948928bf)
D3D12.X: fence sparse tile reuse after the last placed-buffer pin
When a sparse window unmaps a tile still pinned by a placed buffer, the last unpin can put the tile back in the pool before outstanding queue work completes. Defer that return to the existing sparse tile quarantine and take fence marks after the last pin drops. Part of #2457 (item 1), #1773 and #1833.
What is in it
sparse.rsqueues unused tiles at the last unpin. Allocation and submission fence the queued tiles on the sparse and title queues. Pool reuse and retirement continue to use the free list.Tested
6d7f8b9269a1a83f0b1e23805fd3388cdc0c2c44.cargo test -p xcl --lib -j 2 hle::d3d12x::sparse::tests::unpinned_sparse_tiles_wait_for_every_queue_before_reuse -- --exactpassed 1 test with 0 failures, ignored tests or GPU skips.cargo build --offline --locked --workspaceandcargo build --offline --locked --release --workspacesucceeded. The debugcargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputrun withXCL_ADAPTER=3070reported 1,424 passed, 0 failed and 46 ignored across 37 targets. The pass count includes 26SKIPPEDnotices (21 native-wave64 checks, 3 unsupported per-lane forms, 1 reserved cube with mips and 1 heap-window check).Regression run
Both clean release builds ran
scripts/smoke.ps1 -Game <folder> -Seconds 60on the same retail title in the Series S profile on the RTX 3070. They usedXCL_DIRECT_DXIL=1, networking off and identical starting copies of XCL's warmed cache. NVIDIA's driver cache settings were left at their defaults.Main
Candidate
Not tested
AI use