aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkCaps.h
diff options
context:
space:
mode:
authorGravatar egdaniel <egdaniel@google.com>2016-09-20 08:54:23 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-20 08:54:23 -0700
commitbe9d82161d8347929a66ef942dabbe56abf592a4 (patch)
tree2a90ef981c6427bada15c20af059522ac69d8f68 /src/gpu/vk/GrVkCaps.h
parent388127f1927ec6ba699a925969fd38a86cf56b3a (diff)
Workaround for Adreno INITIALIZATION_FAILED bug
Diffstat (limited to 'src/gpu/vk/GrVkCaps.h')
-rw-r--r--src/gpu/vk/GrVkCaps.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h
index f1ab8d050a..6f46952f43 100644
--- a/src/gpu/vk/GrVkCaps.h
+++ b/src/gpu/vk/GrVkCaps.h
@@ -66,6 +66,10 @@ public:
return fMustDoCopiesFromOrigin;
}
+ bool allowInitializationErrorOnTearDown() const {
+ return fAllowInitializationErrorOnTearDown;
+ }
+
/**
* Returns both a supported and most prefered stencil format to use in draws.
*/
@@ -119,6 +123,11 @@ private:
// copyImageToBuffer. This flag says that we must do the copy starting from the origin always.
bool fMustDoCopiesFromOrigin;
+ // On Adreno, there is a bug where vkQueueWaitIdle will once in a while return
+ // VK_ERROR_INITIALIZATION_FAILED instead of the required VK_SUCCESS or VK_DEVICE_LOST. This
+ // flag says we will accept VK_ERROR_INITIALIZATION_FAILED as well.
+ bool fAllowInitializationErrorOnTearDown;
+
typedef GrCaps INHERITED;
};