Commit fde99f57 authored by Jonathan Backer's avatar Jonathan Backer Committed by Commit Bot

Restart GPU process on VK_ERROR_DEVICE_LOST

Currently we can't create a new device without restarting the GPU
process.

Change-Id: I79ae5cb44aace17e5f6123a14fcf9d01588948fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2363253
Commit-Queue: Jonathan Backer <backer@chromium.org>
Reviewed-by: default avatarPeng Huang <penghuang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799269}
parent ae2d9461
...@@ -838,8 +838,10 @@ void GpuChannelManager::OnContextLost(bool synthetic_loss) { ...@@ -838,8 +838,10 @@ void GpuChannelManager::OnContextLost(bool synthetic_loss) {
} }
// Work around issues with recovery by allowing a new GPU process to launch. // Work around issues with recovery by allowing a new GPU process to launch.
if (gpu_driver_bug_workarounds_.exit_on_context_lost) if (gpu_driver_bug_workarounds_.exit_on_context_lost ||
(shared_context_state_ && !shared_context_state_->GrContextIsGL())) {
delegate_->MaybeExitOnContextLost(); delegate_->MaybeExitOnContextLost();
}
} }
void GpuChannelManager::ScheduleGrContextCleanup() { void GpuChannelManager::ScheduleGrContextCleanup() {
......
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