mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 1133623 - check device-removed status when we have timeout. r=milan, r=bas
This commit is contained in:
parent
2d68d11d85
commit
73652c8a4f
@ -1195,7 +1195,17 @@ CompositorD3D11::BeginFrame(const nsIntRegion& aInvalidRegion,
|
||||
MOZ_ASSERT(mutex);
|
||||
HRESULT hr = mutex->AcquireSync(0, 10000);
|
||||
if (hr == WAIT_TIMEOUT) {
|
||||
MOZ_CRASH("GFX: D3D11 timeout");
|
||||
hr = mDevice->GetDeviceRemovedReason();
|
||||
if (hr == S_OK) {
|
||||
// There is no driver-removed event. Crash with this timeout.
|
||||
MOZ_CRASH("GFX: D3D11 normal status timeout");
|
||||
}
|
||||
|
||||
// Since the timeout is related to the driver-removed, clear the
|
||||
// render-bounding size to skip this frame.
|
||||
gfxCriticalNote << "GFX: D3D11 timeout with device-removed:" << gfx::hexa(hr);
|
||||
*aRenderBoundsOut = IntRect();
|
||||
return;
|
||||
}
|
||||
|
||||
mutex->ReleaseSync(0);
|
||||
|
Loading…
Reference in New Issue
Block a user