Index: src/gpu/vk/GrVkBuffer.cpp |
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp |
index 5d2b5659f07a6bd4b1d2b1eb0dca3e1f3347e6c6..82674b4cfbfe04f6d6f29ee8988d9aacfd7a7c08 100644 |
--- a/src/gpu/vk/GrVkBuffer.cpp |
+++ b/src/gpu/vk/GrVkBuffer.cpp |
@@ -45,7 +45,9 @@ const GrVkBuffer::Resource* GrVkBuffer::Create(const GrVkGpu* gpu, const Desc& d |
bufInfo.usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT; |
break; |
} |
- bufInfo.usage |= VK_BUFFER_USAGE_TRANSFER_DST_BIT; |
+ if (!desc.fDynamic) { |
+ bufInfo.usage |= VK_BUFFER_USAGE_TRANSFER_DST_BIT; |
+ } |
bufInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE; |
bufInfo.queueFamilyIndexCount = 0; |