summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-07-18 23:00:30 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2021-07-18 23:00:30 +0200
commit29c39838feb7a234932d60a45058a353387c5ec0 (patch)
treeceac80121295e31d02c6a715862a6cc489450940 /src
parentvk_compute_pass: Fix pipeline barriers on non-initialized ASTC images (diff)
downloadyuzu-29c39838feb7a234932d60a45058a353387c5ec0.tar
yuzu-29c39838feb7a234932d60a45058a353387c5ec0.tar.gz
yuzu-29c39838feb7a234932d60a45058a353387c5ec0.tar.bz2
yuzu-29c39838feb7a234932d60a45058a353387c5ec0.tar.lz
yuzu-29c39838feb7a234932d60a45058a353387c5ec0.tar.xz
yuzu-29c39838feb7a234932d60a45058a353387c5ec0.tar.zst
yuzu-29c39838feb7a234932d60a45058a353387c5ec0.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_vulkan/vk_texture_cache.cpp1
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{