D3D12.X: barrier_groups drops UNDEFINED -> target transitions for new COMMON textures (debug layer 538, 527) #3489
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-30T02:00:47Z.
With
XCL_D3D12_DEBUG=1on the retail title (RTX 5090,XCL_PREPARE=0), newly created targets are drawn/cleared while still inCOMMON|PRESENT(id 538, 8×) and fail their next barrier (id 527, same resource 1 ms later):main53e85fb1):crates/xcl/src/hle/d3d12x/barrier_groups.rs:221-253(transitions_of,LayoutBefore == UNDEFINED). When a texture has no priorLASTentry (prev = [None, None]),if let Some(before) = prev[p]skips emitting any PC transition while still recordingmoved(t.res, p, a, stride). The PC resource stays inCOMMONfor the draw/clear (id 538), and the followingRENDER_TARGET -> ...barrier mismatchesCOMMON(id 527).prev[p]from the resource's recorded creation state (defaultCOMMON) when translatingUNDEFINED -> after, so the initialCOMMON -> RENDER_TARGET/DEPTH_WRITEtransition is emitted.XCL_D3D12_DEBUG=1 XCL_PREPARE=0(observed in the first 65 s on RTX 5090; note: observed on an integration stack carrying#3287'sbarrier_groups.rs, whoseUNDEFINEDbranch is identical onmain53e85fb1).#3287,#1833,#940.AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 3.8 Flash.