Skip to content

[upstream #1837] D3D12.X: release retired sparse heaps on ordinary submits - #302

Open
ufoptg wants to merge 3 commits into
mainfrom
upstream-pr/1837
Open

ufoptg wants to merge 3 commits into
mainfrom
upstream-pr/1837

Conversation

@ufoptg

@ufoptg ufoptg commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Part of xcl-dev#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

  • Checks already-retired sparse heaps on ordinary submissions, with the existing two-second reuse window and sparse fence requirement.
  • Extends the native pool-reuse test to cover a recent pool, an old pool waiting on the fence, and release on a submit with no parked mappings.

Tested

  • AMD Radeon RX 7800 XT (32.0.32029.2010), Ryzen 7 5700X, Windows 11 26300.9974, Rust 1.100.0 MSVC. Debug tests and release title runs.
  • The added assertion failed with the original submission behavior and passed with the fix.
  • cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output passed 891 tests, with 0 failures and 42 ignored. The heap-window fallback check passed separately with its opt-in enabled.

Regression run
Minecraft Preview, identical 1x MSAA profile.

xcl-smoke v1
commit: 4178e888c0b5be50a2887eda45cdb832763b68a4
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 30
exit: 0x0
frames shown: 1629 (PresentX 1629)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3379 MB
xcl-smoke v1
commit: ec610d9771c0e56b7ceacda6648ec27925160f11
gpu: AMD Radeon RX 7800 XT
title: Xbox-Series-1.18.3064.0
seconds: 30
exit: 0x0
frames shown: 1612 (PresentX 1612)
presents per 2 s (last 3): 120 120 120
device removals: 0
crashes: 0
peak commit: 3386 MB

Not tested

  • Memory over a long world-loading session. The title run covers startup and menu rendering. The 64 MiB pool release is exercised by the native test.

AI use

  • OpenAI Codex (GPT-6.2 Sol, high reasoning effort, Fast mode) reproduced and fixed the issue, reviewed the changes, and ran validation.

Mirror of xcl-dev#1837 (auto-synced, do not edit).

raylitebull and others added 3 commits November 24, 2026 21:05
…-oom

dxil: eliminate giant-shader IR and CFG blowup in FormatLoad and multi-window memory
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants