diff options
author | Ameer J <52414509+ameerj@users.noreply.github.com> | 2021-07-19 00:30:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 00:30:28 +0200 |
commit | efc449ca264bf04d51232b884e4fe16e009e190d (patch) | |
tree | ceac80121295e31d02c6a715862a6cc489450940 /src/video_core/renderer_vulkan/vk_texture_cache.cpp | |
parent | Merge pull request #6647 from lat9nq/specify-system-path (diff) | |
parent | vk_texture_cache: Finalize renderpass when downloading images (diff) | |
download | yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.tar yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.tar.gz yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.tar.bz2 yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.tar.lz yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.tar.xz yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.tar.zst yuzu-efc449ca264bf04d51232b884e4fe16e009e190d.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_texture_cache.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_texture_cache.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp index a2ab4d1ee..2638099ed 100644 --- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp +++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp @@ -911,6 +911,7 @@ void Image::UploadMemory(const StagingBufferRef& map, void Image::DownloadMemory(const StagingBufferRef& map, std::span<const BufferImageCopy> copies) { std::vector vk_copies = TransformBufferImageCopies(copies, map.offset, aspect_mask); + scheduler->RequestOutsideRenderPassOperationContext(); scheduler->Record([buffer = map.buffer, image = *image, aspect_mask = aspect_mask, vk_copies](vk::CommandBuffer cmdbuf) { const VkImageMemoryBarrier read_barrier{ |