Enable vulkan copies as draws for everything but qualcomm
authorGreg Daniel <egdaniel@google.com>
Tue, 16 May 2017 18:52:57 +0000 (14:52 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 16 May 2017 22:27:14 +0000 (22:27 +0000)
Bug: skia:
Change-Id: I9fe2593460e2ff83ba4f9471e384f506c16544f9
Reviewed-on: https://skia-review.googlesource.com/17109
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
src/gpu/vk/GrVkCaps.cpp

index 36a252e..eeb43ad 100644 (file)
@@ -97,10 +97,13 @@ void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface*
     }
 
     if (kNvidia_VkVendor == properties.vendorID) {
-        fSupportsCopiesAsDraws = true;
         fMustSubmitCommandsBeforeCopyOp = true;
     }
 
+    if (kQualcomm_VkVendor != properties.vendorID) {
+        fSupportsCopiesAsDraws = true;
+    }
+
     if (fSupportsCopiesAsDraws) {
         fCrossContextTextureSupport = true;
     }