diff options
Diffstat (limited to 'src/video_core/buffer_cache')
| -rw-r--r-- | src/video_core/buffer_cache/buffer_cache.h | 4 |
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 { | |||
| 91 | }; | 91 | }; |
| 92 | 92 | ||
| 93 | public: | 93 | public: |
| 94 | static constexpr size_t SKIP_CACHE_SIZE = 4096; | 94 | static constexpr u32 SKIP_CACHE_SIZE = 4096; |
| 95 | 95 | ||
| 96 | explicit BufferCache(VideoCore::RasterizerInterface& rasterizer_, | 96 | explicit BufferCache(VideoCore::RasterizerInterface& rasterizer_, |
| 97 | Tegra::Engines::Maxwell3D& maxwell3d_, | 97 | Tegra::Engines::Maxwell3D& maxwell3d_, |
| @@ -671,7 +671,7 @@ void BufferCache<P>::BindHostGraphicsUniformBuffer(size_t stage, u32 index, u32 | |||
| 671 | const VAddr cpu_addr = binding.cpu_addr; | 671 | const VAddr cpu_addr = binding.cpu_addr; |
| 672 | const u32 size = binding.size; | 672 | const u32 size = binding.size; |
| 673 | Buffer& buffer = slot_buffers[binding.buffer_id]; | 673 | Buffer& buffer = slot_buffers[binding.buffer_id]; |
| 674 | if (size <= runtime.SkipCacheSize() && !buffer.IsRegionGpuModified(cpu_addr, size)) { | 674 | if (size <= SKIP_CACHE_SIZE && !buffer.IsRegionGpuModified(cpu_addr, size)) { |
| 675 | if constexpr (IS_OPENGL) { | 675 | if constexpr (IS_OPENGL) { |
| 676 | if (runtime.HasFastBufferSubData()) { | 676 | if (runtime.HasFastBufferSubData()) { |
| 677 | // Fast path for Nvidia | 677 | // Fast path for Nvidia |