D3D12.X: prepare color targets for startup clears #1251
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by gloger2003 on 2026-11-24T13:57:04Z.
Some 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
Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T14:01:13Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T14:05:29Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T04:41:01Z.
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.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:40:11Z.
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-01T05:16:27Z.
Triage (#1607) – head
14dfb38#1324 contains this PR's two commits plus its own (
c3f17d3); it is stacked on this one, not a duplicate. No other open or merged PR prepares color targets for startup clears.No problems found in the diff; the behaviour is behind
XCL_TEST_PREP_SUBMITTED_TARGETS. The PR conflicts with main.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.