From e4ece12371ddecdd329d59a34823031dc89a959f Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Tue, 14 Mar 2017 19:07:28 -0500 Subject: [PATCH] BufferCache: Clear the transient cache when invalidated. --- src/xenia/gpu/vulkan/buffer_cache.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xenia/gpu/vulkan/buffer_cache.cc b/src/xenia/gpu/vulkan/buffer_cache.cc index 43d4a4ce8..eaf3324bd 100644 --- a/src/xenia/gpu/vulkan/buffer_cache.cc +++ b/src/xenia/gpu/vulkan/buffer_cache.cc @@ -419,10 +419,7 @@ void BufferCache::Flush(VkCommandBuffer command_buffer) { vkFlushMappedMemoryRanges(device_, 1, &dirty_range); } -void BufferCache::InvalidateCache() { - // TODO(benvanik): caching. -} - +void BufferCache::InvalidateCache() { transient_cache_.clear(); } void BufferCache::ClearCache() { transient_cache_.clear(); } void BufferCache::Scavenge() {