Bug 1673983 - Preload d3d11 attachments for CompositorD3D11 if we might use it with software WebRender. r=lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D95980
This commit is contained in:
Matt Woodrow 2020-11-05 19:27:36 +00:00
Родитель d3116d3c9e
Коммит af301ad5db
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -314,7 +314,7 @@ bool DeviceManagerDx::CreateCompositorDevices() {
// Fallback from WR to D3D11 Non-WR compositor without re-creating gpu process // Fallback from WR to D3D11 Non-WR compositor without re-creating gpu process
// could happen when WR causes error. In this case, the attachments are loaded // could happen when WR causes error. In this case, the attachments are loaded
// synchronously. // synchronously.
if (!gfx::gfxVars::UseWebRender()) { if (!gfx::gfxVars::UseWebRender() || gfx::gfxVars::UseSoftwareWebRender()) {
PreloadAttachmentsOnCompositorThread(); PreloadAttachmentsOnCompositorThread();
} }
@ -1429,7 +1429,8 @@ void DeviceManagerDx::PreloadAttachmentsOnCompositorThread() {
return; return;
} }
bool enableAL = gfxConfig::IsEnabled(Feature::ADVANCED_LAYERS); bool enableAL = gfxConfig::IsEnabled(Feature::ADVANCED_LAYERS) &&
!gfx::gfxVars::UseSoftwareWebRender();
RefPtr<Runnable> task = NS_NewRunnableFunction( RefPtr<Runnable> task = NS_NewRunnableFunction(
"DeviceManagerDx::PreloadAttachmentsOnCompositorThread", "DeviceManagerDx::PreloadAttachmentsOnCompositorThread",