diff options
author | 2016-09-27 12:13:05 -0700 | |
---|---|---|
committer | 2016-09-27 12:13:05 -0700 | |
commit | fd016d7a69f0415f2497d25ec3a7b71de1545826 (patch) | |
tree | b3d7e290ac48012afa6ac77d80edd510eb7d3cf5 /src/gpu/vk/GrVkCaps.h | |
parent | 1f4a874addd7c039fb8b434181040cd6a8a35339 (diff) |
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
Diffstat (limited to 'src/gpu/vk/GrVkCaps.h')
-rw-r--r-- | src/gpu/vk/GrVkCaps.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h index 8e8953e522..a4ce35aa03 100644 --- a/src/gpu/vk/GrVkCaps.h +++ b/src/gpu/vk/GrVkCaps.h @@ -74,6 +74,10 @@ public: return fSupportsCopiesAsDraws; } + bool mustSubmitCommandsBeforeCopyOp() const { + return fMustSubmitCommandsBeforeCopyOp; + } + /** * Returns both a supported and most prefered stencil format to use in draws. */ @@ -86,6 +90,7 @@ public: private: enum VkVendor { kQualcomm_VkVendor = 20803, + kNvidia_VkVendor = 4318, }; void init(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, @@ -135,6 +140,11 @@ private: // Check whether we support using draws for copies. bool fSupportsCopiesAsDraws; + // On Nvidia there is a current bug where we must the current command buffer before copy + // operations or else the copy will not happen. This includes copies, blits, resolves, and copy + // as draws. + bool fMustSubmitCommandsBeforeCopyOp; + typedef GrCaps INHERITED; }; |