Skip to content

Integration: root GPU-VA tracing with bindless UAV copy-back - #9

Draft
Naruto334692 wants to merge 76 commits into
mainfrom
integration/root-view-trace-with-bindless-uav
Draft

Naruto334692 wants to merge 76 commits into
mainfrom
integration/root-view-trace-with-bindless-uav

Conversation

@Naruto334692

@Naruto334692 Naruto334692 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Current integration status (2026-11-26)

Existing GPU work in this branch

  • Integrated root GPU-VA tracing, bindless UAV copy-back, descriptor/table lifetime fixes, and regression tests.
  • Texture detile has explicit success/failure; failed subresources withhold staging uploads, tracked refreshes re-queue dirty memory, and hashes advance only after success.
  • Added bounded texture diagnostics and per-frame counters for missing layouts, unsupported XOR swizzle, unreadable memory, and extra planes not handled by the plane-0 CPU upload path.
  • Added layout/footprint tests for console depth/stencil formats 118-120.
  • The current twin.rs already routes depth and stencil UAV writes through separate R16 and R8 twin textures and converts the depth plane to/from host D24. This does not change the DSV's rasterization precision.

D16 depth-equality finding and reference implementation

  • D24 conversion preserves the stored 16-bit value but does not guarantee identical D16 depth-EQUAL semantics for subsequent rasterized draws.
  • Reference commit 0b9a0f6 adds opt-in VICTORY_LOCAL_D16_DEPTH=1, D16 resource/DSV/PSO mapping, a separate R8 stencil texture with view/clear/copy/state handling, diagnostics for unsupported stencil-test draws, and a synthetic GPU test.
  • That test writes 64 R16 depth values and stencil, then compares depth-EQUAL at exact and quarter-D16-step offsets with D16 and D24S8, for shader-readable and non-readable depth. The commit message reports that D16 passes all probes, D24 misses all 64 fractional probes, and the test had no D3D12 debug-layer messages on the author's GPU and WARP. This is upstream evidence, not a run on this branch or the user's PC.
  • The reference commit and integration branch have diverged, with merge base ffe310eb2098e52169f4c44db5ffdabf43a72622: the reference commit is 99 commits from that base, while this integration branch is 394 commits from it. This is not a simple lag or safe fast-forward/cherry-pick.
  • The integration branch has a different GPU ownership model: title resources can share an Arc<HostTexture> through shared_texture, and current depth/stencil UAV routing is in twin.rs via HostTexture.twin. The reference adds detached-stencil ownership/state/clear fields to its HostTexture and uses depth_twin.rs. Its nine-file patch also touches descriptor, draw, list, host and pipeline paths that have since evolved here.
  • The reference is therefore a behavioral specification and test design, not a directly applicable patch. A safe port first needs a shared-memory/alias ownership design for the detached stencil companion, then lifetime and per-list state integration with this branch's existing twin routing, bindless descriptors and retained owners. No D16 code has been ported in this update; D24 remains the only active path. Do not change pc_format alone.

Validation and source archive

  • Last fully checked code commit: e1a41cff48c8d3b0732cda10eb339ec3f3717bd9; CI run 45715105858 passed both workspace Clippy commands (including --all-features) and cargo test --workspace --locked.
  • Commits 16743a9, 6bf799b, and 8414a15 after that run changed only comments/documentation. No new CI run is present for 8414a15; the GitHub commit status currently has no completed checks.
  • A cumulative source ZIP was rebuilt from the prior verified source snapshot (code through 16743a9) and updated with the latest docs/confirmed-rendering-gaps.md from 8414a15. It contains 239 entries; unzip -t and SHA-256 verification pass. It is not a byte-for-byte Git archive of commit 8414a15; no code changed in that docs-only commit.
  • No Windows runtime or physical-GPU validation has been performed on the user's machine.

Actual game status

The game is not playable yet: the menu runs at about 30 FPS, the world loads slowly, and rendering defects remain. Menu FPS is not a world-scene benchmark. No 30/60 FPS target is claimed.

PR #9 remains open as a draft and has not been merged into main.

Copy link
Copy Markdown
Owner Author

Combined PR #9 CI completed successfully (workflow run 45621679639): standard Clippy, diagnostics/all-features Clippy, and cargo test --workspace --locked all passed. This validates the combined source on the hosted Windows CI runner; it does not replace physical AMD/NVIDIA DRED captures or establish real-game performance/playability. PR remains draft and unmerged.

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