graphics: write small GPU-written tiled images back to guest memory #1472
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!1472
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1472/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?
@overlordxrz-source on GitHub · 2026-10-13 06:42 UTC · original
overlordxrz-source:gta-readback-small-tiled→main· +9 −1 · 1 files · 1 commits · closed without mergingFixes boats and jet skis ignoring the waves in GTA V: a jet ski sinks into the rendered waves and stays at a fixed height.
Port of TheCruZ's fork commit 1b21037df (author kept), under his OK on #1241.
GTA V (PPSA04263) keeps the world origin of its 256x256 wave grid in a 1x1 R32G32_SFLOAT tiled render target, and the water physics read it on the CPU. Only linear images were written back, so the CPU saw a stale origin and every sample fell outside the grid (height 0). This also writes back GPU-written tiled images up to 64x64, when readback is enabled (
--readback-linear-images, on by default with #1471).Testing: GTA testers were asked on #829 to ride a jet ski or boat on main vs this PR's build and post fps on the water.
AI-assisted: yes (porting and PR text)
@coderabbitai[bot] on GitHub · 2026-10-13 06:49 UTC · original · edited 2026-10-16 02:40 UTC
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
b5cabb7c-7e4d-48b2-9fa2-7ee0e2fdd92d📥 Commits
Reviewing files that changed from the base of the PR and between fc66761cfb0ec034cdbd14aa7cc9d27ea51fc121 and
24d8744f38.📒 Files selected for processing: 1
src/graphics/host_gpu/renderer/cache/textureCache.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
When readback is enabled,
TrackImageDownloadnow considers tiled images for download if their width, height, depth, and layer count total at most 4096 texels. Non-tiled images remain eligible. The existing GPU-modified ownership check remains in place.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
24d87Small tiled GPU-written images are now read back to guest memory, enabling the intended CPU-visible updates. The inspected path preserves tiled addressing and safely enforces the size limit, with no concrete merge-blocking risk identified.
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.@Nmzik on GitHub · 2026-10-21 18:56 UTC · original
Credited
Pull request closed