Index: src/gpu/vk/GrVkMemory.cpp |
diff --git a/src/gpu/vk/GrVkMemory.cpp b/src/gpu/vk/GrVkMemory.cpp |
index 7ad9b45987f9e5637c909596607237238cbc3dd1..e411d2d5418683bb8ad8e04580a3e8aea62c5c5b 100644 |
--- a/src/gpu/vk/GrVkMemory.cpp |
+++ b/src/gpu/vk/GrVkMemory.cpp |
@@ -225,7 +225,7 @@ VkAccessFlags GrVkMemory::LayoutToSrcAccessMask(const VkImageLayout layout) { |
VK_ACCESS_TRANSFER_WRITE_BIT | |
VK_ACCESS_HOST_WRITE_BIT | VK_ACCESS_HOST_READ_BIT; |
} else if (VK_IMAGE_LAYOUT_PREINITIALIZED == layout) { |
- flags = VK_ACCESS_HOST_WRITE_BIT | VK_ACCESS_HOST_READ_BIT; |
+ flags = VK_ACCESS_HOST_WRITE_BIT; |
} else if (VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL == layout) { |
flags = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; |
} else if (VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL == layout) { |