Skip to content

gpu/shadow: opt-in VEH lazy GPU-to-CPU copy-back (4/4 of #51, stable-amd) - #190

Open
Vladimir-Human wants to merge 1 commit into
PastiiJay:stable-amdfrom
Vladimir-Human:amd/perf/split-lazy-copyback-veh
Open

Vladimir-Human wants to merge 1 commit into
PastiiJay:stable-amdfrom
Vladimir-Human:amd/perf/split-lazy-copyback-veh

Conversation

@Vladimir-Human

Copy link
Copy Markdown

Clean port of #59 (part 4/4 of #51) onto origin/stable-amd (75022ba, Cargo.lock untouched).

Supersedes #59.

Verification (clean port on 75022ba)

  • cargo check --workspace --tests --locked — passed
  • cargo check -p victory-gpu --tests --locked --features diagnostics — passed
  • HW cargo test --locked -p victory-gpu --lib shadow — 55 passed, 0 failed, 2 ignored
  • HW cargo test --locked -p victory-gpu --lib watch — 42 passed, 0 failed
  • WARP (VICTORY_D3D12_WARP=1) shadow & watch — all passed

@HandshakeHackin

Copy link
Copy Markdown
Contributor

I ran the same readback and queue-wait counters in both arms, following the A/B request in #51. The existing 64 MiB compute workload ran for 5 warmup frames and 30 measured frames per arm on Windows WARP. Each wait below is an actual CPU wait on a copy-back fence.

CPU reads Eager readback / waits Lazy readback / waits Total time inside those waits, eager / lazy
None 1,920 MiB / 30 0 MiB / 0 865.8 / 0 ms
20 pages per frame (~2%) 1,920 MiB / 30 37.5 MiB / 600 867.0 / 52.5 ms

The sparse workload made 20 times as many, smaller waits in lazy mode. Both arms returned the expected CPU-visible checksum of 191,900. The measured byte counts are D3D12 copy sizes. Physical PCIe traffic, hardware wait times and in-game FPS still need the card A/B.

The test-only patch on this head also prints the actual adapter name so testers can distinguish software and hardware captures. Complete four-arm Windows run.

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.

2 participants