зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1573616. Stop using null desc for WARP device. r=lsalzman
This makes us use the actual adapter description instead of a null one. This fixes the problem of a mismatch being detected in ContentAdapterIsParentAdapter which is using D3D11Checks::GetDxgiDesc to determine the adapter. Differential Revision: https://phabricator.services.mozilla.com/D41804 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7c2c13bdfa
Коммит
2f622224e3
|
@ -655,8 +655,8 @@ void DeviceManagerDx::CreateWARPCompositorDevice() {
|
|||
textureSharingWorks = D3D11Checks::DoesTextureSharingWork(device);
|
||||
}
|
||||
|
||||
DxgiAdapterDesc nullAdapter;
|
||||
PodZero(&nullAdapter);
|
||||
DXGI_ADAPTER_DESC desc;
|
||||
D3D11Checks::GetDxgiDesc(device, &desc);
|
||||
|
||||
int featureLevel = device->GetFeatureLevel();
|
||||
|
||||
|
@ -666,9 +666,9 @@ void DeviceManagerDx::CreateWARPCompositorDevice() {
|
|||
mCompositorDevice = device;
|
||||
|
||||
int32_t sequenceNumber = GetNextDeviceCounter();
|
||||
mDeviceStatus =
|
||||
Some(D3D11DeviceStatus(true, textureSharingWorks, featureLevel,
|
||||
nullAdapter, sequenceNumber, formatOptions));
|
||||
mDeviceStatus = Some(D3D11DeviceStatus(
|
||||
true, textureSharingWorks, featureLevel, DxgiAdapterDesc::From(desc),
|
||||
sequenceNumber, formatOptions));
|
||||
}
|
||||
mCompositorDevice->SetExceptionMode(0);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче