mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
gpu: cache temporary disable image buffer cache
This commit is contained in:
parent
09f2d5bfc2
commit
73397a0fea
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue