[PR #2915] [MERGED] buffer_cache: Split updateBuffer calls into 65536 byte chunks. #3079

Closed
opened 2026-02-27 22:02:21 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2915
Author: @squidbus
Created: 5/12/2025
Status: Merged
Merged: 5/12/2025
Merged by: @squidbus

Base: mainHead: fix-update-buf


📝 Commits (1)

  • 85553a2 buffer_cache: Split updateBuffer calls into 65536 byte chunks.

📊 Changes

1 file changed (+9 additions, -1 deletions)

View changed files

📝 src/video_core/buffer_cache/buffer_cache.cpp (+9 -1)

📄 Description

vkCmdUpdateBuffer can only be used for copies up to 65536 bytes, but games may hit the InlineData path with slightly larger amounts of data. To solve this, split into multiple updates.

Fixes constant validation errors in CUSA01047


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2915 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 5/12/2025 **Status:** ✅ Merged **Merged:** 5/12/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `fix-update-buf` --- ### 📝 Commits (1) - [`85553a2`](https://github.com/shadps4-emu/shadPS4/commit/85553a2a1b8a7c01cf028dcc099cdaba26dee711) buffer_cache: Split updateBuffer calls into 65536 byte chunks. ### 📊 Changes **1 file changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/buffer_cache/buffer_cache.cpp` (+9 -1) </details> ### 📄 Description `vkCmdUpdateBuffer` can only be used for copies up to 65536 bytes, but games may hit the `InlineData` path with slightly larger amounts of data. To solve this, split into multiple updates. Fixes constant validation errors in CUSA01047 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:21 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#3079
No description provided.