mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 00:05:58 +03:00
[PR #3150] [CLOSED] liverpool: Flush buffer cache on rewind packet and async download of small buffers #3264
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#3264
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/3150
Author: @raphaelthegreat
Created: 6/22/2025
Status: ❌ Closed
Base:
main← Head:rewind-flush📝 Commits (10+)
9298533liverpool: Flush buffers on Rewind packet2ca34c4video_core: Improve some data validity21f5d8ebuffer_cache: Simplify download copy generationc0e6c42buffer_cache: More precise image alias check6534008clang format35c6e57buffer_cache: Use copy instead of movee580073liverpool: Use pending downloads API for rewindf03d0c8buffer_cache: Backing memory write fixesbc148d0buffer_cache: Dont create buffers on ReadMemoryec6fc48buffer_cache: Make ReadMemory thread-safe📊 Changes
15 files changed (+497 additions, -137 deletions)
View changed files
📝
src/core/memory.cpp(+17 -8)📝
src/shader_recompiler/backend/spirv/emit_spirv_context_get_set.cpp(+14 -7)📝
src/shader_recompiler/ir/passes/shader_info_collection_pass.cpp(+4 -0)📝
src/video_core/amdgpu/liverpool.cpp(+67 -42)📝
src/video_core/amdgpu/liverpool.h(+7 -1)📝
src/video_core/amdgpu/pm4_cmds.h(+2 -2)📝
src/video_core/buffer_cache/buffer_cache.cpp(+273 -49)📝
src/video_core/buffer_cache/buffer_cache.h(+45 -9)📝
src/video_core/buffer_cache/memory_tracker.h(+9 -0)📝
src/video_core/buffer_cache/range_set.h(+5 -0)📝
src/video_core/page_manager.cpp(+1 -0)📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+31 -5)📝
src/video_core/renderer_vulkan/vk_rasterizer.h(+3 -0)📝
src/video_core/renderer_vulkan/vk_scheduler.cpp(+15 -14)📝
src/video_core/renderer_vulkan/vk_scheduler.h(+4 -0)📄 Description
This is essentially a readbacks-lite, which tries to give most of the benefits of readbacks without the steep performance cost. It also appears to fix the brightness problems in Driveclub.
It's still highly WIP and prone to instability so opening as draft. Also @LNDF your PR seems to break something in the region manager when messing with GPU bits, so I have your PR reverted here until its fixed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.