summaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache
diff options
context:
space:
mode:
authorGravatar ReinUsesLisp2021-01-18 19:00:00 -0300
committerGravatar ReinUsesLisp2021-02-13 02:17:24 -0300
commit3da87d3f12d39b9a52625fa9e5e0c5defc0ac440 (patch)
treee7aba23cfda1ab2402c1d35f4c45d6b799523189 /src/video_core/buffer_cache
parentbuffer_cache: Heuristically detect stream buffers (diff)
downloadyuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.gz
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.tar.xz
yuzu-3da87d3f12d39b9a52625fa9e5e0c5defc0ac440.zip
gl_buffer_cache: Drop interop based parameter buffer workarounds
Sacrify runtime performance to avoid generating kernel exceptions on Windows due to our abusive aliasing of interop buffer objects.
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 {
91 }; 91 };
92 92
93public: 93public:
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