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

Depends on D95800

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

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

@ -314,7 +314,7 @@ bool DeviceManagerDx::CreateCompositorDevices() {
// 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
// synchronously.
if (!gfx::gfxVars::UseWebRender()) {
if (!gfx::gfxVars::UseWebRender() || gfx::gfxVars::UseSoftwareWebRender()) {
PreloadAttachmentsOnCompositorThread();
}
@ -1429,7 +1429,8 @@ void DeviceManagerDx::PreloadAttachmentsOnCompositorThread() {
return;
}
bool enableAL = gfxConfig::IsEnabled(Feature::ADVANCED_LAYERS);
bool enableAL = gfxConfig::IsEnabled(Feature::ADVANCED_LAYERS) &&
!gfx::gfxVars::UseSoftwareWebRender();
RefPtr<Runnable> task = NS_NewRunnableFunction(
"DeviceManagerDx::PreloadAttachmentsOnCompositorThread",