D3D12.X: do not record BEGIN_ONLY split barriers as completed texture states #1654
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!1654
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1654"
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?
@AlpPesen on GitHub · 2026-11-24 18:46 UTC · original
AlpPesen:fix/split-barrier-begin-only→main· +49 −3 · 1 files · 1 commits · openPart of #1488 (
XCL-BT-032).When a title records a split transition barrier with
D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY(flags & 1 != 0), the transition toStateAfterhas only begun and is not complete until the matchingEND_ONLYbarrier. RecordingStateAfterintracked_statesonBEGIN_ONLYcan mislead subsequenttitle_texturestransition tracking.What is in it
BEGIN_ONLYsplit transition barriers (flags & 1 != 0) when collecting completed transitions incrates/xcl/src/hle/d3d12x/list_x.rs.completed_transitions_skips_split_begin_only_barriersverifying normal (NONE),BEGIN_ONLY,END_ONLY, aliasing, and UAV barriers.Tested
rustc 1.100.0, DXC1.9.2602.17.cargo test -p xcl --lib completed_transitions_skips_split_begin_only_barriers: 1 passed, 0 failed, 0 ignored, 0 skipped.e1d84b7.Not tested
e1d84b7.Regression run
AI use
BEGIN_ONLYfilter and unit test, rebased ontoe1d84b7, ran the test and pairedscripts/smoke.ps1runs, and drafted this PR description.@WebIdentity1 on GitHub · 2026-11-24 19:48 UTC · original
Independent RTX 3090 check of exact head
2adee4589bdf294bb9fbeeee2b481466d7e2ca27against its immediate parent/mainc160d86ef2efe3a07e4dfb473e4fa72eafb413c0.Windows 10, RTX 3090, driver 591.74, Agility SDK 1.620.2;
XCL_ADAPTER=3090,XCL_REQUIRE_GPU=mesh. Clean tracked sources (292 SHA-256 matches after the runs). Native desktop session 1 for full suites; no game files were used.completed_transitions_skips_split_begin_only_barrierstest on head: 1 passed / 0 failed / 0 ignored.cargo build --locked --workspace: exit 0 on parent and head.cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --show-output, withoutXCL_HEAP_WINDOWS: parent 856 passed / 2 failed / 42 ignored, head 856 passed / 3 failed / 42 ignored across 20 targets. Both failed the existing #202 CLAMP check andheap_window_out_of_memory_falls_back_to_the_switch_form(requires heap-window opt-in under the strict GPU gate). The extra head failure wasd32s8_targets_take_their_own_size_of_video_memory:list.Close()returnedE_FAILat unchangedvram.rs:1010after allocating 14 D32S8 targets (~936 MB). This observation prevents calling the paired full run regression-clean.XCL_HEAP_WINDOWS=1gave 858 passed / 1 failed / 42 ignored across 20 targets; only #202 CLAMP failed and D32S8 passed. No harness timeout. The original D32S8Close()failure remains unexplained; the follow-ups do not prove it cannot recur.Four tests returned success via explicit skip paths in each full run: two require native wave64, and two require system D3D12 SDK debug layers unavailable on this host. The new unit test checks transition collection, not actual split-barrier command execution on the GPU. I did not run a retail title or measure frame rate or memory growth.
One comparison caveat for the PR description: the reported AMD smoke baseline
09940bb8is 130 commits before this PR's parentc160d86e(146 files changed in between). The 405-to-1305 frame difference is a useful lead, but it cannot isolate this one-line behavior change without a smoke run on the immediate parent or a nearby main revision.Validation/report prepared with Codex (GPT-6); all runs and counts above came from the Windows machine.
@DavidM1911 on GitHub · 2026-11-24 21:16 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:55 UTC · original
XCL PR #1654 verification
Clean detached head
2adee4589bdf294bb9fbeeee2b481466d7e2ca27on STOR-WINLAB. AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation x64 build 26200, Intel Arc A770 driver 32.0.101.9175, DXC 1.9.2609.5, rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc).Tested
cargo build --workspaceandcargo test --workspace --no-runsucceeded outside the GPU lock. The latter built 19 test binaries.cargo test -p xcl --lib completed_transitions_skips_split_begin_only_barriers -- --nocapturepassed (1/0/0, zero skips). The new test incrates/xcl/src/hle/d3d12x/list_x.rsverifies that the state tracker receives normal and END_ONLY transitions with the resource, subresource and StateAfter intact. BEGIN_ONLY, aliasing and UAV barriers are excluded.cargo test -p xcl --lib hle::d3d12x::title_textures::tests::transitions_ -- --nocapturepassed (2/0/0, zero skips), covering per-subresource states and applying transitions in submission order, including resubmission and reset. Both focused commands ran CPU-only withXCL_ADAPTER=NONE_CPU_ONLY.cargo test --workspace --no-fail-fast -- --test-threads=4ran once underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. Exit 101. All 20 result lines (19 binaries plus doctests) sum to 841 passed, 18 failed and 42 ignored. The three focused tests also passed in this run.Workspace failures and skips
CreateComputePipelineStateerror 0x80070057. Four reported mismatches for FMA contraction, mip sampling, FP16 lane preservation or wave64 reduction.test_title_runs_and_game_folder_is_untouchedfailed its dynamic depth bias check. The test title drew a blue pixel where it expected green.SKIPPED. Two require wave64, one requires tiled tier 2, one requires heap windows and two require the D3D12 debug layer. The latter includeuploads_start_from_each_subresources_state. These skips provide no coverage.Not tested
Live GPU split-barrier behavior, retail-title smoke comparison, other adapters and opt-in game samples. A matched main run is needed to attribute the failures.
AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1654-suite.logand published.@thehollowedone on GitHub · 2026-11-25 12:06 UTC · original
Independent Windows/NVIDIA run on 9015e35.
Tested
Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug.
cargo build --offline --locked --workspacepassed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 1244 passed, 0 failed, 46 ignored. The split-barrier regression passed. It checks that XCL records complete transitions and split ends, while leaving split begins, aliasing barriers, and UAV barriers out of the texture-state update.Not tested
Retail smoke, AMD, Linux/Wine, and native wave64. Cargo's passed count includes 25 explicit skip notices (20 wave64, 3 unsupported f16 translator cases, 1 heap-window case, and 1 driver-cache control).
AI-assisted. Codex (GPT-6, exact variant unavailable) ran the tests and drafted this report.
github-bot referenced this pull request2026-11-26 06:18:31 +00:00
@DavidM1911 on GitHub · 2026-11-26 06:07 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
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.