Commit 1aca2407 authored by Zhenyao Mo's avatar Zhenyao Mo Committed by Commit Bot

Check if mysterious EnqueueSetEvent failure is due to device lost

BUG=1060785,1077725
TEST=bots
R=rafael.cintron@microsoft.com

Change-Id: I2e169acc0f138f635c5c1238065d29cb0a4f8ceb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505599
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Rafael Cintron <rafael.cintron@microsoft.com>
Reviewed-by: default avatarRafael Cintron <rafael.cintron@microsoft.com>
Auto-Submit: Zhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821853}
parent 2f1974d2
...@@ -205,6 +205,8 @@ bool DirectCompositionChildSurfaceWin::ReleaseDrawTexture(bool will_discard) { ...@@ -205,6 +205,8 @@ bool DirectCompositionChildSurfaceWin::ReleaseDrawTexture(bool will_discard) {
event.Wait(); event.Wait();
} else { } else {
base::debug::Alias(&hr); base::debug::Alias(&hr);
HRESULT reason = d3d11_device_->GetDeviceRemovedReason();
base::debug::Alias(&reason);
base::debug::DumpWithoutCrashing(); base::debug::DumpWithoutCrashing();
} }
} }
......
...@@ -883,6 +883,8 @@ bool SwapChainPresenter::PresentToSwapChain( ...@@ -883,6 +883,8 @@ bool SwapChainPresenter::PresentToSwapChain(
event.Wait(); event.Wait();
} else { } else {
base::debug::Alias(&hr); base::debug::Alias(&hr);
HRESULT reason = d3d11_device_->GetDeviceRemovedReason();
base::debug::Alias(&reason);
base::debug::DumpWithoutCrashing(); base::debug::DumpWithoutCrashing();
} }
} }
......
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