[PR #3197] video_core: Batch syncing buffers for DMA (WIP) #3297

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

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/3197
Author: @LNDF
Created: 7/6/2025
Status: 🔄 Open

Base: mainHead: batch-sync


📝 Commits (10+)

  • 31ac542 Tracker locking
  • 47c43df Use RangeSet
  • 5490740 Initial implementation (untested)
  • 5a24258 Deferring mode
  • 8e54385 correct default temple args
  • 35bbe87 Merge branch 'main' into batch-sync
  • 5d2598c Fix shared locking
  • 17815ad Single pass on mapped ranges (no barrier batching)
  • cee22c4 Merge remote-tracking branch 'upstream/main' into batch-sync
  • a6cdf2e Some tests

📊 Changes

11 files changed (+175 additions, -55 deletions)

View changed files

📝 CMakeLists.txt (+1 -1)
📝 src/common/func_traits.h (+23 -4)
📝 src/video_core/amdgpu/liverpool.cpp (+13 -3)
📝 src/video_core/buffer_cache/buffer_cache.cpp (+77 -5)
📝 src/video_core/buffer_cache/buffer_cache.h (+8 -7)
📝 src/video_core/buffer_cache/region_definitions.h (+2 -0)
📝 src/video_core/buffer_cache/region_manager.h (+24 -8)
📝 src/video_core/page_manager.cpp (+1 -0)
📝 src/video_core/range_set.h (+6 -6)
📝 src/video_core/renderer_vulkan/vk_rasterizer.cpp (+10 -13)
📝 src/video_core/renderer_vulkan/vk_rasterizer.h (+10 -8)

📄 Description

This is a draft, not ready.

It aims to batch syncing buffers for DMA.

I have not tested this. Expect not to work.


🔄 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/3197 **Author:** [@LNDF](https://github.com/LNDF) **Created:** 7/6/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `batch-sync` --- ### 📝 Commits (10+) - [`31ac542`](https://github.com/shadps4-emu/shadPS4/commit/31ac54258a2cea6d6f63c05a576baf4d4142ffa8) Tracker locking - [`47c43df`](https://github.com/shadps4-emu/shadPS4/commit/47c43df5449fe65015b48c4d0b06419781164b45) Use RangeSet - [`5490740`](https://github.com/shadps4-emu/shadPS4/commit/54907409c76d3383a17cbfd3dc207b109ffb1a25) Initial implementation (untested) - [`5a24258`](https://github.com/shadps4-emu/shadPS4/commit/5a242586ad3663e1566b7a90d8839da30e07b6b4) Deferring mode - [`8e54385`](https://github.com/shadps4-emu/shadPS4/commit/8e54385f103f9524a3502e26df526d6676428e69) correct default temple args - [`35bbe87`](https://github.com/shadps4-emu/shadPS4/commit/35bbe874a97580ad2ece5e39b4d1dccfdaab2b46) Merge branch 'main' into batch-sync - [`5d2598c`](https://github.com/shadps4-emu/shadPS4/commit/5d2598c50557a9c1aa8ecd76704714bf1fe2ad13) Fix shared locking - [`17815ad`](https://github.com/shadps4-emu/shadPS4/commit/17815ad439edfd9c08ec262c2c846b13ed068a89) Single pass on mapped ranges (no barrier batching) - [`cee22c4`](https://github.com/shadps4-emu/shadPS4/commit/cee22c45e8c57a455901934d630d532bcfa084b0) Merge remote-tracking branch 'upstream/main' into batch-sync - [`a6cdf2e`](https://github.com/shadps4-emu/shadPS4/commit/a6cdf2eac7730f85a3c224382bbc09d33ccb59bd) Some tests ### 📊 Changes **11 files changed** (+175 additions, -55 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -1) 📝 `src/common/func_traits.h` (+23 -4) 📝 `src/video_core/amdgpu/liverpool.cpp` (+13 -3) 📝 `src/video_core/buffer_cache/buffer_cache.cpp` (+77 -5) 📝 `src/video_core/buffer_cache/buffer_cache.h` (+8 -7) 📝 `src/video_core/buffer_cache/region_definitions.h` (+2 -0) 📝 `src/video_core/buffer_cache/region_manager.h` (+24 -8) 📝 `src/video_core/page_manager.cpp` (+1 -0) 📝 `src/video_core/range_set.h` (+6 -6) 📝 `src/video_core/renderer_vulkan/vk_rasterizer.cpp` (+10 -13) 📝 `src/video_core/renderer_vulkan/vk_rasterizer.h` (+10 -8) </details> ### 📄 Description This is a draft, not ready. It aims to batch syncing buffers for DMA. I have not tested this. Expect not to work. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#3297
No description provided.