From a63e7ab3bbb2140456378cce0eff23eb74b3583a Mon Sep 17 00:00:00 2001 From: Greg Daniel Date: Tue, 16 May 2017 14:38:54 -0400 Subject: [PATCH] Require copy as draws for vulkan cross context image support Bug: skia: Change-Id: I0eb5039146278f88b7a869c8c19d5f84d5857529 Reviewed-on: https://skia-review.googlesource.com/17108 Commit-Queue: Greg Daniel Reviewed-by: Brian Osman --- src/gpu/vk/GrVkCaps.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp index 691722f..36a252e 100644 --- a/src/gpu/vk/GrVkCaps.cpp +++ b/src/gpu/vk/GrVkCaps.cpp @@ -36,7 +36,7 @@ GrVkCaps::GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* fUseDrawInsteadOfClear = false; fFenceSyncSupport = true; // always available in Vulkan - fCrossContextTextureSupport = true; + fCrossContextTextureSupport = false; fMapBufferFlags = kNone_MapFlags; //TODO: figure this out fBufferMapThreshold = SK_MaxS32; //TODO: figure this out @@ -101,6 +101,10 @@ void GrVkCaps::init(const GrContextOptions& contextOptions, const GrVkInterface* fMustSubmitCommandsBeforeCopyOp = true; } + if (fSupportsCopiesAsDraws) { + fCrossContextTextureSupport = true; + } + #if defined(SK_BUILD_FOR_WIN) if (kNvidia_VkVendor == properties.vendorID) { fMustSleepOnTearDown = true; -- 2.7.4