merge overlapping gpu write-back ranges and coalesce watch opens #991
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!991
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/991/head"
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?
@matheusfrta on GitHub · 2026-11-24 14:43 UTC · original
matheusfrta:patch-1795531426→main· +293 −91 · 3 files · 5 commits · closed without mergingIt 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.
@Zipettte on GitHub · 2026-11-24 14:55 UTC · original
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).
@matheusfrta on GitHub · 2026-11-24 15:19 UTC · original
Thanks for catching that! Fixed the typo back to DXGI_FORMAT_B8G8R8A8_UNORM in host.rs.
@Marvisak on GitHub · 2026-11-25 00:29 UTC · original
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