GPU: preserve newer CPU writes across copied-buffer overlaps #238
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!238
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-238"
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?
@loyodea on GitHub · 2026-11-26 08:01 UTC · original
loyodea:victory-card-buffer-copy→main· +67 −53 · 1 files · 1 commits · openRelated to #105. Ordinary copied buffers retain a snapshot to identify bytes written by the GPU. Advance it after copy-back, as the sparse path already does, so overlapping ranges do not misclassify previously mirrored CPU bytes and overwrite a newer write.
Tested
4f62c2afailed the same write-watch assertion. The asset policy reported the existing lower.rs size violation.The tests select the ordinary copy path directly. Actual VRAM exhaustion, Wine, the RX 7900 XT, and the reported rendering symptom remain unverified. Codex contributed the implementation and verification.
@adrianmjim on GitHub · 2026-11-26 21:43 UTC · original
Tested on an RX 7900 XT (RDNA3, driver 32.0.32029.2010) with Rust 1.98.1. Head
b325bad, against main4f62c2a. This covers the RX 7900 XT that the PR lists as unverified.4f62c2aand pass onb325bad, on hardware and on WARP.4f62c2a, the second overlapping copy-back puts the merged GPU bytes back over the newer CPU write, on hardware and on WARP.4f62c2a.Not tested: the game, Wine, real card-buffer exhaustion (#105), write-watched modes, or performance.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.