Commit ffdbfa39 by Yuly Novikov Committed by Commit Bot

Vulkan: warn on VK_ERROR_DEVICE_LOST

Bug: angleproject:2657 Change-Id: I076f9d3b8e532fefa614483a822600a9636f7a37 Reviewed-on: https://chromium-review.googlesource.com/c/1342423Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Yuly Novikov <ynovikov@chromium.org>
parent 8a0fb48a
...@@ -1235,6 +1235,7 @@ void ContextVk::handleError(VkResult errorCode, const char *file, unsigned int l ...@@ -1235,6 +1235,7 @@ void ContextVk::handleError(VkResult errorCode, const char *file, unsigned int l
if (errorCode == VK_ERROR_DEVICE_LOST) if (errorCode == VK_ERROR_DEVICE_LOST)
{ {
WARN() << errorStream.str();
mRenderer->notifyDeviceLost(); mRenderer->notifyDeviceLost();
} }
......
...@@ -196,6 +196,7 @@ void DisplayVk::handleError(VkResult result, const char *file, unsigned int line ...@@ -196,6 +196,7 @@ void DisplayVk::handleError(VkResult result, const char *file, unsigned int line
if (result == VK_ERROR_DEVICE_LOST) if (result == VK_ERROR_DEVICE_LOST)
{ {
WARN() << mStoredErrorString;
mRenderer->notifyDeviceLost(); mRenderer->notifyDeviceLost();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment