D3D12.X: skip repeated exhausted descriptor searches #2545
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!2545
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@jeroenhaentjens on GitHub · 2026-11-25 22:33 UTC · original
jeroenhaentjens:d3d12x/cache-exhausted-descriptor-searches→main· +159 −6 · 1 files · 1 commits · draftUnmapped 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.
@DavidM1911 on GitHub · 2026-11-25 22:46 UTC · original
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!
@SlopTart on GitHub · 2026-11-25 23:33 UTC · original
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.
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.