D3D12.X: skip repeated exhausted descriptor searches #2535
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2545"
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?
Imported from ivall/xcl. Originally posted by jeroenhaentjens on 2026-11-25T22:33:41Z.
Unmapped descriptor pages repeatedly scan the same fragmented shared pool after allocation fails. Remember the smallest failed request separately for view and sampler pools until a nonzero release; smaller requests still use the existing first-fit allocator.
What is in it
console_heap.rs: failure-size caching under the existing pool mutexes, invalidated by both release paths.Tested
XCL_ADAPTER=nvidia.35aaf980394992ca340dc0aa38461ce1daf198cb, based on maine1d84b7:cargo build --workspace --lockedpassed;cargo test --workspace --locked --no-fail-fast -- --test-threads=4exited 0: 1427 reported passes, 0 failures, 46 ignored across 37 completed suites.SKIPPEDrecords: 21 native-wave64, 3 unsupported per-lane FP16/conversion, 1 driver-cache control, 3 debug-layer cases, 1 heap-window case. Reported passes include skipped cases; these and absent game-sample inputs are not coverage.cargo test --locked -p xcl --lib hle::d3d12x::console_heap::tests:: -- --test-threads=4 --nocapture: 16 passed, 0 failed/ignored/skipped. Removing only the cache guard makes both repeated-search regressions fail: 14 passed, 2 failed, exit 101.git diff --checkpassed; independent subagents reviewed allocation invariants, release invalidation and test isolation.Regression run
Not run: no suitable game package available. Remains draft pending paired main/head
scripts/smoke.ps1runs.Not tested
Retail descriptor pressure, gameplay/FPS improvement and AMD hardware. The deterministic regressions establish avoided scans and unchanged allocation results, not a measured world-load improvement.
AI use
OpenAI Codex, GPT-6 (exact deployment variant unavailable), with subagents: implementation, tests, independent reviews and the reported local validation.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T22:46:52Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-25T23:33:29Z.
Tested: current PR head merged onto current
origin/main(clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo targetx86_64-pc-windows-gnurun under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).gpu_suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.Targeted runs of the four new range-search tests (
cached_range_search_matches_uncached_allocation_and_release_sequences, the twofailed_range_search*retry/reuse tests,failed_page_searches_retry_when_their_own_pool_releases_space): 4 passed.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.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:44:50Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:20:27Z.
Triage (#1607) – head
35aaf98No open or merged PR makes the same change (#2405 handles an exhausted hosted view heap differently, and #2782 added fence-quarantined ranges).
The cache is only correct while every path that adds ranges to
freeclearsfailed_at. Since #2782, main also adds them outsiderelease_global/release_global_sampler:pop_ready_ranges->leases.release_rangeinreserve_global_sampler,leases.finish*, and the retired-range drain. After the rebase, those paths must resetfailed_attoo. The sampler path must also drain the ready ranges before the earlyNone, or the pool can report full after space has come back.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.