diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-07 02:26:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 02:26:21 +0200 |
commit | eb3cb3af353dd1d62b11a6032e35656153ecb505 (patch) | |
tree | 239f6d2857bd4af68ed77b91639c1d7fce5934cb /src/video_core/renderer_vulkan/vk_rasterizer.cpp | |
parent | Merge pull request #6566 from Morph1984/sign-compare-as-error (diff) | |
parent | Texture Cache: Fix collision with multiple overlaps of the same sparse texture. (diff) | |
download | yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.gz yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.bz2 yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.lz yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.xz yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.tar.zst yuzu-eb3cb3af353dd1d62b11a6032e35656153ecb505.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_rasterizer.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_rasterizer.cpp b/src/video_core/renderer_vulkan/vk_rasterizer.cpp index 1c9120170..bd4d649cc 100644 --- a/src/video_core/renderer_vulkan/vk_rasterizer.cpp +++ b/src/video_core/renderer_vulkan/vk_rasterizer.cpp @@ -557,6 +557,13 @@ void RasterizerVulkan::UnmapMemory(VAddr addr, u64 size) { pipeline_cache.OnCPUWrite(addr, size); } +void RasterizerVulkan::ModifyGPUMemory(GPUVAddr addr, u64 size) { + { + std::scoped_lock lock{texture_cache.mutex}; + texture_cache.UnmapGPUMemory(addr, size); + } +} + void RasterizerVulkan::SignalSemaphore(GPUVAddr addr, u32 value) { if (!gpu.IsAsync()) { gpu_memory.Write<u32>(addr, value); |