commit | 7d05f32a1dec990321ffd8165d5f253ab99de3e5 | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Wed Sep 21 10:20:23 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Wed Sep 21 10:20:23 2016 -0700 |
tree | f50ded34f7e6c0395b54a0fc48c0261dbe974a34 | |
parent | 38925aa37c17c0f54868852b8c3edf373400c742 [diff] |
Always use transfer_dst for buffers. This will allow Adreno to use non-coherent buffers. BUG=skia:5034 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2361473002 Review-Url: https://codereview.chromium.org/2361473002
diff --git a/src/gpu/vk/GrVkBuffer.cpp b/src/gpu/vk/GrVkBuffer.cpp index 82674b4..5d2b565 100644 --- a/src/gpu/vk/GrVkBuffer.cpp +++ b/src/gpu/vk/GrVkBuffer.cpp
@@ -45,9 +45,7 @@ bufInfo.usage = VK_BUFFER_USAGE_TRANSFER_DST_BIT; break; } - if (!desc.fDynamic) { - bufInfo.usage |= VK_BUFFER_USAGE_TRANSFER_DST_BIT; - } + bufInfo.usage |= VK_BUFFER_USAGE_TRANSFER_DST_BIT; bufInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE; bufInfo.queueFamilyIndexCount = 0;