graphics: mark guest fills/copies CPU-dirty so resets reach consumers #1548
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1548
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1548"
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?
@theantipopau on GitHub · 2026-10-16 02:59 UTC · original
theantipopau:buffer-fills-mark-cpu-dirty→main· +6 −0 · 1 files · 1 commits · openFrom the #1072 (Wukong Nanite slot-queue) analysis: FillBuffer and CopyBuffer guest fast paths write guest memory through raw pointers, which bypasses page-fault tracking when the pages are already CPU-owned. A later ObtainBuffer can then miss IsRegionCpuModified and serve a stale slot-buffer copy — exactly the '0xFFFFFFFF reset never reaches its consumer' shape. This marks the range CPU-modified explicitly after the guest write. Small, no behavior change on GPU-owned paths.
@coderabbitai[bot] on GitHub · 2026-10-16 03:02 UTC · original · edited 2026-10-18 22:16 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
f67a702c-d606-42d8-aafc-ad335f888d29📥 Commits
Reviewing files that changed from the base of the PR and between 1de702b016d8e1c674a74327cf4442928547a3ae and
336b5d4533.📒 Files selected for processing: 1
src/graphics/host_gpu/renderer/cache/bufferCache.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
BufferCache::FillBufferand the direct CPU-memory branch ofBufferCache::CopyBuffernow mark the affected guest-memory ranges as CPU-modified after writing them.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
336b5The direct guest-memory fill and copy paths now record their writes so later reads and slot-buffer synchronization can see the updated data. No merge-blocking risk remains in the reviewed change.
Pre-merge checks:
4 ·
1
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.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.