summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-13 14:27:33 +0100
committerLiam <byteslice@airmail.cc>2024-02-13 14:27:33 +0100
commit3067bfd126348470ce6473ca5eeee5bdd20917ac (patch)
tree748d36c2041fc518467b4da3fdef41674da18a81 /src
parentMerge pull request #12974 from german77/ldn-interface (diff)
downloadyuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.tar
yuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.tar.gz
yuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.tar.bz2
yuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.tar.lz
yuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.tar.xz
yuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.tar.zst
yuzu-3067bfd126348470ce6473ca5eeee5bdd20917ac.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index 6d3d933c5..296c90e85 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -1130,7 +1130,7 @@ void BufferCache<P>::UpdateVertexBuffer(u32 index) {
channel_state->vertex_buffers[index] = NULL_BINDING;
return;
}
- if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end)) {
+ if (!gpu_memory->IsWithinGPUAddressRange(gpu_addr_end) || size >= 64_MiB) {
size = static_cast<u32>(gpu_memory->MaxContinuousRange(gpu_addr_begin, size));
}
const BufferId buffer_id = FindBuffer(*device_addr, size);