summaryrefslogtreecommitdiffstats
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-01-18 23:00:00 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-02-13 06:17:24 +0100
commit3da87d3f12d39b9a52625fa9e5e0c5defc0ac440 (patch)
treee7aba23cfda1ab2402c1d35f4c45d6b799523189 /src/video_core/buffer_cache
parentbuffer_cache: Heuristically detect stream buffers (diff)
downloadyuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.gz
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.bz2
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.lz
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.xz
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.zst
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.zip
Diffstat (limited to 'src/video_core/buffer_cache')
-rw-r--r--src/video_core/buffer_cache/buffer_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/buffer_cache/buffer_cache.h b/src/video_core/buffer_cache/buffer_cache.h
index 0fff42826..a296036f4 100644
--- a/src/video_core/buffer_cache/buffer_cache.h
+++ b/src/video_core/buffer_cache/buffer_cache.h
@@ -91,7 +91,7 @@ class BufferCache {
};
public:
- static constexpr size_t SKIP_CACHE_SIZE = 4096;
+ static constexpr u32 SKIP_CACHE_SIZE = 4096;
explicit BufferCache(VideoCore::RasterizerInterface& rasterizer_,
Tegra::Engines::Maxwell3D& maxwell3d_,
@@ -671,7 +671,7 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32
const VAddr cpu_addr = binding.cpu_addr;
const u32 size = binding.size;
Buffer& buffer = slot_buffers[binding.buffer_id];
- if (size <= runtime.SkipCacheSize() && !buffer.IsRegionGpuModified(cpu_addr, size)) {
+ if (size <= SKIP_CACHE_SIZE && !buffer.IsRegionGpuModified(cpu_addr, size)) {
if constexpr (IS_OPENGL) {
if (runtime.HasFastBufferSubData()) {
// Fast path for Nvidia