diff options
author | 2016-09-20 08:54:23 -0700 | |
---|---|---|
committer | 2016-09-20 08:54:23 -0700 | |
commit | be9d82161d8347929a66ef942dabbe56abf592a4 (patch) | |
tree | 2a90ef981c6427bada15c20af059522ac69d8f68 /src/gpu/vk/GrVkCaps.h | |
parent | 388127f1927ec6ba699a925969fd38a86cf56b3a (diff) |
Workaround for Adreno INITIALIZATION_FAILED bug
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2352083002
Review-Url: https://codereview.chromium.org/2352083002
Diffstat (limited to 'src/gpu/vk/GrVkCaps.h')
-rw-r--r-- | src/gpu/vk/GrVkCaps.h | 9 |
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; }; |