Repository navigation
GPU: arm bindless heap UAV ranges before marked copy-back - #3
Naruto334692 wants to merge 20 commits into
Conversation
Integration validation (Windows)The combined tree with the unchanged-copy fast path and bindless heap UAV copy-back passed GitHub Actions run 45600710813 on commit
This verifies the two PR changes together on the Windows CI runner. It is not a real GTA VI hardware run and does not establish an FPS gain. |
Synthetic WARP A/B resultThe benchmark control run 45603378829 (PR #3 without PR #1) measured median preparing 306.2 ms and copy-back 162.1 ms. The combined PR #1 + PR #3 run 45602186239 measured 79.3 ms preparing and 146.4 ms copy-back. That is about 74% lower synthetic CPU preparing time and 9.7% lower copy-back in these runs. Both used the same WARP benchmark/workload on Windows hosted runner jobs, not the same physical machine. This does not show game FPS or discrete-GPU performance; the absolute values should not be compared to title frame time. |
Problem
Viewed::ranges()already distinguishes shader-resource and unordered-access buffer hulls, butStep::Heaprefreshed both kinds identically. Unlike ordinary table/root UAVs, heap-indexed UAV ranges did not get a matchingShadow::writing(...)declaration.copy_back_marks()could therefore see a marked page while its tracker had not saved the title's pre-write bytes;copy_back_marked()then takes its documented unarmed-page shortcut and keeps the title bytes, losing overlapping GPU writes.Change
Viewed::ranges()through the bindless refresh callback.Shadow::writingbefore the GPU submission.p.marks.is_some()) and the shadow has a bitmap. A native/uninstrumented or mixed pipeline epoch uses the byte-snapshot fallback instead.Step::Heap, not in a submission-wide map, so one command list'smissedresult cannot affect another list's copy-back.Regression coverage
bindless::tests::refresh_reports_buffer_view_access_kindchecks SRV/UAV classification survives range merging.host::batch::heap_write_usage_accumulates_only_within_refresh_epochchecks write aggregation, barrier separation, mark-table availability and per-step journal isolation.bindless::tests::heap_views_are_currentandheap_views_follow_writes_through_another_mappinguse an uninstrumented native shader with a 128-DWORD UAV. A deferred CPU write to DWORD 100 (outside the shader's first-64-DWORD write span but inside the same tracked 64-KiB page) must survive in both host shadow and title memory; this exercises snapshot fallback rather than assuming a shader mark table exists.shadow::tests::marked_pages_go_back_by_the_bytes_the_gpu_changedcovers the marked-page merge path.Validation status
Windows GitHub Actions run 45597515546 passed on head
0c61426405acf34f03450508a06960add2940e5a:cargo test --workspace --locked: success; all reported test suites passed with 0 failures (some tests are intentionally ignored/filtered).The workflow ran on the current fork
mainbase, which matches upstreamMarvisak/VIctorymain at940d32f69b22265690a0b5a15d6ded572ba33bafat the time of verification. This is CI validation only; no real GTA VI run or FPS improvement is claimed.No game files, title binaries, shader packs or proprietary assets are included.
Combined integration check
This GPU correctness change was also combined with PR #1's unchanged-copy fast path and armed-range optimization in integration PR #4. Windows CI run 45600710813 passed both workspace Clippy passes and
cargo test --workspace --lockedwith 0 failures. This is CI validation only; no real GTA VI hardware run or FPS improvement is claimed.