Repository navigation
D3D12.X: preserve startup clears when target state is unknown - #1324
Open
gloger2003 wants to merge 3 commits into
Open
gloger2003 wants to merge 3 commits into
gloger2003 wants to merge 3 commits into
Conversation
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
A regression run under Wine on Linux, on a retail title. Tested
Regression run main (first run): this PR: The last Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
gloger2003
marked this pull request as ready for review
November 24, 2026 19:06
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)
An unresolved queue wait can put a submitted clear behind producer work that has not reached the GPU queue yet. Keep the title commands in this case and stop inferring states for the targets involved. Serialize the planning and submission with waits, and avoid inserting transitions across alias activation or deactivation. Assisted-by: OpenAI Codex (GPT-6.2 Sol)
gloger2003
force-pushed
the
fix/startup-clear-queue-order
branch
from
November 24, 2026 21:58
8a48b44 to
c3f17d3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1261. Only
c3f17d3belongs to this PR. Review the follow-up diff.A queue can wait on producer work that has yet to be submitted, so CPU submission order alone cannot establish a target's state. An alias barrier can also change which texture is active inside a recorded list. Keep title commands in these cases and skip automatic preparation for affected targets.
What is in it
Tested
c3f17d3, 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. 966 reported passed, 0 failed, 43 ignored. Runtime skips: 7 (gpu, heap_window_out_of_memory_falls_back_to_the_switch_form).Earlier testing on
8a48b44, its predecessor and the indicated integration tree:cargo build --offline --locked --workspaceandcargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --show-output. The tests ran withXCL_TEST_PREP_SUBMITTED_TARGETS=1. 758 passed, 0 failed, 41 ignored, 0 capability skips.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.8a48b44. The Wine report did not establish that the title took the opt-in path.Regression run
Minecraft Preview at 1x, 30 seconds per build.
XCL_TEST_PREP_SUBMITTED_TARGETS=1was set for both runs.Not tested
AI use