merge overlapping gpu write-back ranges and coalesce watch opens #991
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/991"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by matheusfrta on 2026-11-24T14:43:56Z.
It merges overlapping shader write ranges per shadow buffer so each submission diffs and copies back every byte at most once instead of re-scanning overlapping views against the same snapshot, and uses 8-byte chunk fast paths during the merge. It also coalesces contiguous VirtualProtect calls in watch::open, drops a temporary Vec allocation in watch::writes, and ignores zero-length ranges so unaligned zero-byte calls do not unguard a block.
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T14:55:04Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
00c1f57:cargo test -p victory-gpudoes not compile:Looks like a typo for
DXGI_FORMAT_B8G8R8A8_UNORM(the line is added by this PR). main (ffe310e) builds and passes on the same machine.Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by matheusfrta on 2026-11-24T15:19:24Z.
Thanks for catching that! Fixed the typo back to DXGI_FORMAT_B8G8R8A8_UNORM in host.rs.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:29:36Z.
Automated triage for the maintainers. Closing because this change is already in
main, ormainhas since replaced the code it patches.Superseded by main: whole pieces are compared and copied back once per submission (shadow.rs
compared), and the watch.rs functions it tunes (open over ranges, writes) were replaced by per-copy trackers.If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed