Repository navigation
D3D12.X: prepare color targets for startup clears - #1261
gloger2003 wants to merge 2 commits into
Conversation
|
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 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. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Track the submitted state of eligible placed textures. Add transitions around startup clears when needed and keep auxiliary lists alive until the GPU has finished. Keep the path opt-in while testing more queue and resource patterns. Assisted-by: OpenAI Codex (GPT-6)
Keep the title transition when building the submission preparation fails. Restore the expected state in a separate barrier call to avoid a duplicate-subresource diagnostic, and exercise normal and fallback behavior in the texture-state test. Assisted-by: OpenAI Codex (GPT-6)
c0c80cf to
14dfb38
Compare
|
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current |
|
Nothing has happened on this PR for 3 days, so it is marked |
|
#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. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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 VFS: keep game files hidden after delete-on-close #1038, Tests: verify successful BCPack requests through the queue #1047, D3D12.X: match default depth views to MSAA textures #1087, XGameRuntime: identify error messages supplied by the title #1105, D3D12.X: release the interface returned by QueryInterface #1156, D3D12.X: prepare color targets for startup clears #1261 and D3D12.X: preserve startup clears when target state is unknown #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