aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Greg Daniel <egdaniel@google.com>2017-05-16 14:52:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-16 22:27:14 +0000
commit1cdbdda91748d5a3fece595e07de5efb662aaaad (patch)
treea9171b9f5b62be1888dadd265156c48773bd4d01 /src
parent065c580824b85dc6ec118ecae1a139ebc5bdecef (diff)
Enable vulkan copies as draws for everything but qualcomm
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>
Diffstat (limited to 'src')
-rw-r--r--src/gpu/vk/GrVkCaps.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp
index 36a252e237..eeb43adf31 100644
--- a/src/gpu/vk/GrVkCaps.cpp
+++ b/src/gpu/vk/GrVkCaps.cpp
@@ -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;
}