aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkCaps.h
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2016-09-27 12:13:05 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-27 12:13:05 -0700
commitfd016d7a69f0415f2497d25ec3a7b71de1545826 (patch)
treeb3d7e290ac48012afa6ac77d80edd510eb7d3cf5 /src/gpu/vk/GrVkCaps.h
parent1f4a874addd7c039fb8b434181040cd6a8a35339 (diff)
Add command buffer submits before copy calls in vulkan.
Diffstat (limited to 'src/gpu/vk/GrVkCaps.h')
-rw-r--r--src/gpu/vk/GrVkCaps.h10
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;
};