Index: src/gpu/vk/GrVkMemory.cpp |
diff --git a/src/gpu/vk/GrVkMemory.cpp b/src/gpu/vk/GrVkMemory.cpp |
index 1dac9f344094299ca20a288530a7c26e49a8d5f2..48bea9c67ef762774e0ca1a968ae2b6656d4506c 100644 |
--- a/src/gpu/vk/GrVkMemory.cpp |
+++ b/src/gpu/vk/GrVkMemory.cpp |
@@ -223,9 +223,11 @@ VkAccessFlags GrVkMemory::LayoutToSrcAccessMask(const VkImageLayout layout) { |
VkAccessFlags flags = 0;; |
if (VK_IMAGE_LAYOUT_GENERAL == layout) { |
flags = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | |
- VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | |
- VK_ACCESS_TRANSFER_WRITE_BIT | |
- VK_ACCESS_HOST_WRITE_BIT | VK_ACCESS_HOST_READ_BIT; |
+ VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | |
+ VK_ACCESS_TRANSFER_WRITE_BIT | |
+ VK_ACCESS_TRANSFER_READ_BIT | |
+ VK_ACCESS_SHADER_READ_BIT | |
+ VK_ACCESS_HOST_WRITE_BIT | VK_ACCESS_HOST_READ_BIT; |
} else if (VK_IMAGE_LAYOUT_PREINITIALIZED == layout) { |
flags = VK_ACCESS_HOST_WRITE_BIT; |
} else if (VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL == layout) { |