From 73397a0fea9d4ac7879f77838497d85eb17d04c8 Mon Sep 17 00:00:00 2001 From: DH Date: Fri, 1 Nov 2024 12:58:09 +0300 Subject: [PATCH] gpu: cache temporary disable image buffer cache --- rpcsx/gpu/Cache.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/rpcsx/gpu/Cache.cpp b/rpcsx/gpu/Cache.cpp index 09bf3ee60..3870a5b2a 100644 --- a/rpcsx/gpu/Cache.cpp +++ b/rpcsx/gpu/Cache.cpp @@ -702,7 +702,8 @@ struct CachedHostVisibleBuffer : CachedBuffer { using CachedBuffer::update; bool expensive() { - return !rx::g_config.disableGpuCache && addressRange.size() >= rx::mem::pageSize; + return !rx::g_config.disableGpuCache && + addressRange.size() >= rx::mem::pageSize; } bool flush(void *target, rx::AddressRange range) { @@ -778,15 +779,7 @@ struct CachedImageBuffer : Cache::Entry { unsigned depth = 1; bool expensive() { - if (rx::g_config.disableGpuCache) { - return false; - } - - if (isLinear() && info.totalTiledSize < rx::mem::pageSize) { - return false; - } - - return true; + return false; } [[nodiscard]] bool isLinear() const {