gpu: cache temporary disable image buffer cache

This commit is contained in:
DH 2024-11-01 12:58:09 +03:00
parent 09f2d5bfc2
commit 73397a0fea

View file

@ -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 {