D3D12.X: prepare color targets for startup clears #1261
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!1261
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1261"
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?
@gloger2003 on GitHub · 2026-11-24 13:57 UTC · original
gloger2003:fix/initial-render-target-preparation→main· +419 −10 · 5 files · 2 commits · openSome placed color targets reach a startup clear in COMMON. On Windows, the clear requires RENDER_TARGET. A transition recorded in another list may already have prepared the target, so the PR uses submission order to choose which transitions to insert.
The stacked PR #1324 adds safeguards for unresolved queue waits and aliased targets. Review the two together before enabling the experiment.
What is in it
XCL_TEST_PREP_SUBMITTED_TARGETS=1and add coverage for replay and native D3D12 state transitions.Tested
14dfb38, Windows 11 x64, Ryzen 7 5700X, Radeon RX 7800 XT.cargo build --offline --locked --release -p xclon main and the rebased head.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputon the rebased head. 961 reported passed, 0 failed, 43 ignored. Runtime skips: 7 (gpu, heap_window_out_of_memory_falls_back_to_the_switch_form).Earlier testing on
c0c80cf, its predecessor and the indicated integration tree:cargo build --offline --locked --workspaceandcargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-outputwith the flag enabled for tests. 753 passed, 0 failed, 41 ignored, 0 capability skips.cfa8fc8, RTX 5090 passed 753 workspace tests and RTX 3060 Ti passed 29 texture tests.c160d86at local mergef4be315, which includes #1038, #1047, #1087, #1105, #1156, #1261 and #1324. On the RX 7800 XT, matched 30-second Minecraft Preview runs at 1x with the debug layer and DRED had six startup errors with preparation disabled (three each of IDs 527 and 538) and zero with it enabled. Both runs showed the menu, exited cleanly and reported two Input Layout warnings. The sampled frame at present 1340 had 124,446 and 124,432 non-dark samples out of 129,600.Regression run
Minecraft Preview at 1x, 30 seconds per build.
XCL_TEST_PREP_SUBMITTED_TARGETS=1was set for both runs.Not tested
AI use
@dcastell1 on GitHub · 2026-11-24 14:01 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@930e8b4(baseline 751 passed, 0 failed, 41 ignored on this box):Two more passing tests than the baseline; preparing colour targets for startup clears ships its coverage and it runs green.
Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@DavidM1911 on GitHub · 2026-11-24 14:05 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
@DavidM1911 on GitHub · 2026-11-26 04:41 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.