Repository navigation
GPU: route UAV barriers on depth textures to their twin planes - #1803
mgunes1311-lab wants to merge 7 commits into
Conversation
In HostList::prelude, keep pre-list states intact while recording depth-twin copies and advance them to *last afterward when building entry barriers.
Expand UAV barriers on depth textures with a writable twin to each twin plane, and omit UAV barriers on host textures without ALLOW_UNORDERED_ACCESS.
VIctory V2: community PRs, merged and testedOpen PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: Unofficial community fork of Marvisak/VIctory, GPL-3.0. |
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Copy depth twins from pre-list states in prelude + route depth: 34K gpu diff touching copy planning and prelude state. Windows-only; interacts with the placed-copy work reviewed earlier (#1374/#1725) — check for overlap.
|
Automated triage for the maintainers. Merge candidate. After the merge with What I checked in CI: the Generated by Claude Code |
|
Merged |
Summary
Routes
D3D12_RESOURCE_BARRIER_TYPE_UAV(kind == 2) barriers naming a console depth texture to its writable colour twin planes (twin.planes), and skips UAV barriers on host resources that lackD3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS.(Note: this PR originally also ordered
HostList::preludetwin copies before advancingcopy.state;315cea1landed that fix onmain, sohost.rsis now unchanged frommain.)Root Cause
Console depth textures with unordered access get their
D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESSflag stripped on the host depth-stencil resource, while compute UAV writes go toTwin::planes(crates/victory-gpu/src/twin.rs). Incrates/victory-gpu/src/list.rs,barrierpreviously translatedkind == 2(UAV) barriers by substitutinghost(b.first)directly:ALLOW_UNORDERED_ACCESSin aD3D12_RESOURCE_UAV_BARRIERis invalid in D3D12.twin.planesat all.Changes
crates/victory-gpu/src/list.rs:host_barrierwithpush_host_barriersso a single console UAV barrier on a depth texture with an initializedTwinexpands to UAV barriers on each plane intwin.planes.D3D12_RESOURCE_FLAG_ALLOW_UNORDERED_ACCESS(dropping UAV barriers on depth textures before a twin exists or on non-UAV colour textures).uav_barriers_on_depth_textures_target_their_twin_planes.Verification
cargo test -p victory-gpu --locked uav_barriers_on_depth_textures_target_their_twin_planescargo clippy --workspace --all-targets --all-features -- -D warningscargo run -p xtask -- policy