Bug 1578605 - Remove workaround of Bug 1569881 r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D44592

--HG--
extra : moz-landing-system : lando
This commit is contained in:
sotaro 2019-09-04 02:40:27 +00:00
parent 1f279f7006
commit 45201fa9a1
3 changed files with 1 additions and 20 deletions

View File

@ -44,7 +44,6 @@ class gfxVarReceiver;
_(UseWebRenderDCompWin, bool, false) \
_(UseWebRenderTripleBufferingWin, bool, false) \
_(UseWebRenderProgramBinaryDisk, bool, false) \
_(WorkaroundWebRenderIntelBug1556634, bool, false) \
_(WebRenderDebugFlags, int32_t, 0) \
_(ScreenDepth, int32_t, 0) \
_(GREDirectory, nsString, nsString()) \

View File

@ -3115,22 +3115,6 @@ void gfxPlatform::InitWebRenderConfig() {
gfxVars::SetUseWebRenderTripleBufferingWin(true);
}
}
// When Windows version is mort than 1903 and GPU is intel GPU, it could cause
// flickering with DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL. See Bug 1556634.
// As a workaround, use DXGI_ALPHA_MODE_PREMULTIPLIED instead of
// DXGI_ALPHA_MODE_IGNORE at SwapChain.
// XXX remove this workaround.
if (IsWin10May2019UpdateOrLater() && UseWebRender() &&
gfxVars::UseWebRenderDCompWin()) {
nsAutoString adapterVendorID;
nsCOMPtr<nsIGfxInfo> gfxInfo = services::GetGfxInfo();
gfxInfo->GetAdapterVendorID(adapterVendorID);
if (adapterVendorID == u"0x8086") { // Intel
gfxVars::SetWorkaroundWebRenderIntelBug1556634(true);
gfxCriticalNote << "Use Premul SwapChain for Intel GPU";
}
}
#endif
// Set features that affect WR's RendererOptions

View File

@ -317,9 +317,7 @@ void RenderCompositorANGLE::CreateSwapChainForDCompIfPossible(
// DXGI_SCALING_NONE caused swap chain creation failure.
desc.Scaling = DXGI_SCALING_STRETCH;
desc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
desc.AlphaMode = gfx::gfxVars::WorkaroundWebRenderIntelBug1556634()
? DXGI_ALPHA_MODE_PREMULTIPLIED
: DXGI_ALPHA_MODE_IGNORE;
desc.AlphaMode = DXGI_ALPHA_MODE_IGNORE;
desc.Flags = 0;
hr = aDXGIFactory2->CreateSwapChainForComposition(mDevice, &desc, nullptr,