Skip to content

GPU: barrier both host mirrors of depth-stencil UAVs - #214

Open
avt0m4t48 wants to merge 1 commit into
fxceless:mainfrom
avt0m4t48:fix/depth-stencil-twin-uav-barriers
Open

avt0m4t48 wants to merge 1 commit into
fxceless:mainfrom
avt0m4t48:fix/depth-stencil-twin-uav-barriers

Conversation

@avt0m4t48

Copy link
Copy Markdown

Route a resource-specific UAV barrier to both host UAV textures that mirror a guest depth-stencil resource. The test obtains the actual host textures retained by the mirrored descriptors and checks the barrier targets. It also checks a global barrier and an ordinary texture, then records and closes the guest command list through its vtable. Refs #72 and #114.

The source-built Windows x64 test failed on the original translation because only the stencil target was present. The patched test and both command-list tests passed under Wine 10, VKD3D-Proton 3.1, DXVK 3.1.1 and Mesa llvmpipe. Build command: cargo test --locked --target x86_64-pc-windows-gnu -p victory-gpu --features blake3/pure --lib --no-run. The regression is list::tests::a_depth_stencil_uav_barrier_names_both_twins.

This run recorded commands without submitting them. Native Windows GPU execution and game behavior remain unverified. AI-assisted using Codex. Source-built inputs only.

RecompLive pushed a commit to RecompLive/victory-fork that referenced this pull request Nov 25, 2026
Loader: clzero loops in one exception; rdpru (fxceless#34 rebased, with a fix)
oceansde012 pushed a commit to oceansde012/victory-gta6 that referenced this pull request Nov 25, 2026
Loader: clzero loops in one exception; rdpru (fxceless#34 rebased, with a fix)
(cherry picked from commit 15de8f9)
triippywhale pushed a commit to triippywhale/victory-fork that referenced this pull request Nov 25, 2026
…ins get UAV barriers

Port of PalmVIDev d3f0ad91 (AscilCH) with fxceless#214.
D3D12 does not AddRef the resources a ResourceBarrier names. Transition
barriers already kept their host textures (HostList::transition); aliasing
and UAV barriers now keep theirs on the list too, until it is reset. A UAV
barrier on a depth-stencil texture also goes to the twin of its depth
plane, which shaders write besides the colour twin.

Adapted to this tree: host_barrier keeps fxceless#201's skip of textures
whose unordered use was dropped; the depth-plane barrier is a second
barrier per title barrier (depth_plane_barrier), with the same check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017V7WBA8CxPD68KngjiMeJb
PiloteCode added a commit to PiloteCode/victory-fork that referenced this pull request Nov 25, 2026
…celess#24/fxceless#104), null CBVs (fxceless#304), tables at list cuts (fxceless#742), heap entries (fxceless#589), barriers (fxceless#787), depth-stencil UAV barriers (fxceless#214), windows ending at recorded writes (fxceless#663), sRGB views (fxceless#644), wide accesses across pages (fxceless#846), view-guard costs (fxceless#812/fxceless#853), the fill latch (fxceless#860), pipeline waits (fxceless#709), robustness; opt-in fxceless#868/fxceless#845
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant