Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
resource_barrier_x passed every transition it forwarded to title_textures::note_transitions, which takes the StateAfter as the state the texture is in once the list has run. A split barrier's BEGIN_ONLY (D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY) only starts its transition: the resource is not in the new state, and must not be used, until the END_ONLY completes it - the state uploads into a kept-in-step texture started from then belonged to a transition that had not finished. Record a transition for the barriers that complete one (flags NONE or END_ONLY), not for a BEGIN_ONLY. Assisted-by: OpenCode (Gemini 4 Neon)
b3IKK
force-pushed
the
d3d12x/split-barrier-begin-not-complete
branch
from
November 24, 2026 21:35
4ab9be9 to
76cdd13
Compare
Contributor
Author
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
Contributor
Author
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.
Addresses
XCL-BT-032from #1488.resource_barrier_xpassed every transition it forwarded totitle_textures::note_transitions, which takes theStateAfteras the state the texture is in once the list has run. A split barrier'sBEGIN_ONLY(D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY) only starts its transition: the resource is not in the new state — and must not be used — until the matchingEND_ONLYcompletes it. The state an upload into a kept-in-step texture started from could therefore belong to a transition that had not finished.This records a transition for the barriers that complete one (flags
NONEorEND_ONLY), not for aBEGIN_ONLY.END_ONLYkeeps itsStateAfter(the console repeats it in the pair).What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:completed_transitions()filters the barriers handed totitle_textures::note_transitions(type TRANSITION, flags ≠ BEGIN_ONLY); add testa_split_barriers_begin_is_not_a_completed_transition(NONE + BEGIN_ONLY + END_ONLY → 2 records; a UAV barrier is none). Fails with the filter removed:left: 3, right: 2.Tested
stable-x86_64-pc-windows-msvc), DXC 1.9.2609.5, debug (scripts/test.ps1) and release (scripts/smoke.ps1).\scripts\test.ps1(cargo build --workspace+cargo test --workspace -- --test-threads=4): 960 passed, 0 failed, 43 ignored (SKIPPED: the wave64 / direct-DXIL per-lane tests that need 64-lane hardware or a semantics mode this adapter refuses,no heap windows, andcannot disable the driver cache (Windows Developer Mode is required))cargo test -p xcl --lib list_x: 29 passed, 0 failedRegression run
main (
c4d37be, clean tree, no local changes):PR (
76cdd13, clean tree, no local changes):Not tested
AI use
XCL-BT-032againstnote_transitionsand the D3D12 split-barrier rules, wrote the fix and test (and confirmed it fails without the filter), rebased ontoc4d37be, ran the test suite andscripts/smoke.ps1regression runs with Scripts: smoke blocks print the game folder's name #677's title hashing, and drafted this PR description.