renderer: keep the render area inside every attachment #1920
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!1920
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1920/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?
@ew-sudo on GitHub · 2026-10-26 19:29 UTC · original
ew-sudo:pr-render-area→main· +22 −0 · 1 files · 1 commits · closed without mergingThe texture cache can return a depth target narrower than the guest description (GT7: 65 for 66, 216 for 228, 495 for 512). The render area came from the description, so rendering wrote past the image and NVIDIA lost the device on a page fault. Clamp the render area to the attachments' real extents.
Testing
Gran Turismo 7 (PPSA01317), RTX 4070 Laptop.
@coderabbitai[bot] on GitHub · 2026-10-26 19:34 UTC · original
No actionable comments were generated in the recent review.
016d4d6b-5744-405e-b22e-26752ae8385bReviewing files that changed from the base of the PR and between
f90a8b1589andc1a766b8e9.src/graphics/host_gpu/renderer/renderDraw.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
Walkthrough
AcquireRenderTargetsnow limits the render area to each color and depth image’s backing extent at the view’s base mip level. The newClampToBackinghelper clamps width and height and logs up to 16 undersized-attachment cases.Suggested reviewers:
nmzikPriority:
Normal
Change: Bug fix
Merge Risk:
Minimal · up to
c1a76The attachment extents are clamped consistently, 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-11-04 08:04 UTC · original
Duplicate: #375
Pull request closed