Index: src/gpu/vk/GrVkStencilAttachment.cpp |
diff --git a/src/gpu/vk/GrVkStencilAttachment.cpp b/src/gpu/vk/GrVkStencilAttachment.cpp |
index 97597fc5118e7e239b19c876a67b76cd2c7770b0..a3d3af345a5a75f93260ca8be520ba5d4c5bdc52 100644 |
--- a/src/gpu/vk/GrVkStencilAttachment.cpp |
+++ b/src/gpu/vk/GrVkStencilAttachment.cpp |
@@ -42,7 +42,8 @@ GrVkStencilAttachment* GrVkStencilAttachment::Create(GrVkGpu* gpu, |
imageDesc.fLevels = 1; |
imageDesc.fSamples = sampleCnt; |
imageDesc.fImageTiling = VK_IMAGE_TILING_OPTIMAL; |
- imageDesc.fUsageFlags = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT; |
+ imageDesc.fUsageFlags = VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT | |
+ VK_IMAGE_USAGE_TRANSFER_DST_BIT; |
imageDesc.fMemProps = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT; |
const GrVkImage::Resource* imageResource = GrVkImage::CreateResource(gpu, imageDesc); |