commit | fd016d7a69f0415f2497d25ec3a7b71de1545826 | [log] [tgz] |
---|---|---|
author | egdaniel <egdaniel@google.com> | Tue Sep 27 12:13:05 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Sep 27 12:13:05 2016 -0700 |
tree | b3d7e290ac48012afa6ac77d80edd510eb7d3cf5 | |
parent | 1f4a874addd7c039fb8b434181040cd6a8a35339 [diff] [blame] |
Add command buffer submits before copy calls in vulkan. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2363773006 Committed: https://skia.googlesource.com/skia/+/25661bac7722860b7589c5b01ec404531d941456 Review-Url: https://codereview.chromium.org/2363773006
diff --git a/src/gpu/vk/GrVkCaps.cpp b/src/gpu/vk/GrVkCaps.cpp index 7669ba5..e72e723 100644 --- a/src/gpu/vk/GrVkCaps.cpp +++ b/src/gpu/vk/GrVkCaps.cpp
@@ -19,6 +19,7 @@ fMustDoCopiesFromOrigin = false; fAllowInitializationErrorOnTearDown = false; fSupportsCopiesAsDraws = false; + fMustSubmitCommandsBeforeCopyOp = false; /************************************************************************** * GrDrawTargetCaps fields @@ -74,6 +75,11 @@ fAllowInitializationErrorOnTearDown = true; } + if (kNvidia_VkVendor == properties.vendorID) { + fSupportsCopiesAsDraws = true; + fMustSubmitCommandsBeforeCopyOp = true; + } + this->applyOptionsOverrides(contextOptions); GrGLSLCaps* glslCaps = static_cast<GrGLSLCaps*>(fShaderCaps.get()); glslCaps->applyOptionsOverrides(contextOptions);