Index: src/gpu/vk/GrVkCaps.h |
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h |
index f1ab8d050acf8052c1a26edacb4872872220c892..6f46952f43b1a27b34974644100cb65a38a5c423 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; |
}; |