Repository navigation
Conversation
… states In list_x::resource_barrier_x, itle_textures::note_transitions previously recorded StateAfter for every D3D12_RESOURCE_BARRIER_TYPE_TRANSITION barrier regardless of Flags. A split barrier with D3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY (1) only begins the transition and does not move the resource into StateAfter until the matching END_ONLY barrier executes. Skip BEGIN_ONLY barriers when collecting completed transitions for itle_textures::note_transitions, keeping NONE (0) and END_ONLY (2) transitions. Part of xcl-dev#1488 (XCL-BT-032). Assisted-by: Antigravity (Gemini 4 Neon)
|
Independent RTX 3090 check of exact head Windows 10, RTX 3090, driver 591.74, Agility SDK 1.620.2;
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 Validation/report prepared with Codex (GPT-6); all runs and counts above came from the Windows machine. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
XCL PR #1654 verificationClean detached head Tested
Workspace failures and skips
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 |
Fixes
list_x::resource_barrier_xso split transition barriers withD3D12_RESOURCE_BARRIER_FLAG_BEGIN_ONLY(Flags = 1) are not recorded as completedStateAfterstates intitle_textures::note_transitions.In D3D12, a
BEGIN_ONLYsplit barrier only initiates the transition; the resource does not enterStateAfteruntil the matchingEND_ONLY(Flags = 2) barrier runs. RecordingStateAfteronBEGIN_ONLYlefttitle_texturestracking a state the resource had not reached yet.Part of #1488 (
XCL-BT-032).What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:completed_transitions(barriers)filteringb[0] == 0 && b[1] & BARRIER_FLAG_BEGIN_ONLY == 0, soNONE(0) andEND_ONLY(2) transition barriers still recordStateAfterwhileBEGIN_ONLY(1) barriers are skipped.title_textures::note_transitionswhencompleted_transitions(&out)is empty.completed_transitions_skips_split_begin_only_barrierscoveringNONE,BEGIN_ONLY,END_ONLY, aliasing, and UAV barriers.Regression run
Baseline (
main):This PR (
fix/split-barrier-begin-only):Tested
Hardware: Windows 11 Pro for Workstations (Build 26300), Intel Core i9-9900K, 32 GB RAM, AMD Radeon RX 6800 (16337 MiB VRAM, Driver
32.0.21045.29003),rustc 1.100.0 (0ef1bc386 2026-11-09).cargo test -p xcl --lib completed_transitions_skips_split_begin_only_barriers:1 passed; 0 failed; 0 ignored; 0 skipped.cargo test -p xcl --test texture_states:1 passed; 0 failed; 0 ignored; 0 skipped.cargo test -p xcl --test gpu_compute_e2e:4 passed; 0 failed; 0 ignored; 1 skipped(heap_window_out_of_memory_falls_back_to_the_switch_form: no heap windows, opt-inXCL_HEAP_WINDOWS=1).XCL_REQUIRE_GPU=wave64,mesh cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4:855 passed; 4 failed; 42 ignored; 0 skipped(3 pre-existing RDNA2placed_title_textures_share_vram_and_preserve_pixels+VRAM_TEST_LOCKcascades tracked in D3D12.X: map a one-slice title texture's packed mips where D3D12 addresses them #470, plusheap_window_out_of_memory_falls_back_to_the_switch_formfailing its opt-in skip check underXCL_REQUIRE_GPU)..\scripts\smoke.ps1 -Game '<game folder>\YouKnowWho'on2adee4589bdf294bb9fbeeee2b481466d7e2ca27(see Regression run above).Not tested
AI use
Antigravity (Gemini 4 Neon) implemented the
BEGIN_ONLYfilter and unit test incrates/xcl/src/hle/d3d12x/list_x.rs, and ran the full test suite and smoke run.