Always use transfer_dst for buffers.
authorjvanverth <jvanverth@google.com>
Wed, 21 Sep 2016 17:20:23 +0000 (10:20 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 21 Sep 2016 17:20:23 +0000 (10:20 -0700)
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

src/gpu/vk/GrVkBuffer.cpp

index 82674b4cfbfe04f6d6f29ee8988d9aacfd7a7c08..5d2b5659f07a6bd4b1d2b1eb0dca3e1f3347e6c6 100644 (file)
@@ -45,9 +45,7 @@ const GrVkBuffer::Resource* GrVkBuffer::Create(const GrVkGpu* gpu, const Desc& d
             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;