D3D12.X: keep compositor render targets out of title tracking #2480
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!2480
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2480"
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?
@Creaa on GitHub · 2026-11-25 19:52 UTC · original
Creaa:d3d12x/compositor-rtv-tracking-2456→main· +30 −2 · 1 files · 1 commits · openThe presenter creates its render-target view through the same hooked D3D12 device as the title. Tracking that view adds a COM reference to the swap-chain back buffer that can prevent DXGI from resizing the buffers. Addresses the back-buffer reference in #2456. The sRGB format question in that issue remains open.
What is in it
The RTV creation and binding hooks skip title tracking during the presenter's own work. A regression test checks that the title's render target stays registered and bound while the compositor's handle stays out of both tables.
Tested
cargo test -p xcl --lib compositor_render_targets_stay_out_of_title_trackingfailed before the fix because both handles appeared in the table. On7400291it passed.cargo build --workspacesucceeded.cargo test --workspace --no-fail-fast -- --test-threads=4reported 1414 passed, 0 failed, 46 ignored. The 29 SKIPPED messages covered wave64, unsupported direct-DXIL cases, heap windows, D3D12 debug layers and the driver cache setting that requires Developer Mode. The harness includes skipped cases in its pass count.Regression run
main:
this PR:
Not tested
The 60-second retail run did not specifically exercise a swap-chain resize after multi-plane composition. The unit test covers the references held by the tracking hooks.
AI use
OpenAI Codex (GPT-6) verified the tracking path, wrote the change and its regression test, ran the test suite and both smoke runs, and drafted this description.
@DavidM1911 on GitHub · 2026-11-25 20:34 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 20:52 UTC · original
gpu_suite (cold cache): 164 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 run of
compositor_render_targets_stay_out_of_title_tracking: passed.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.