Bug 1798052 - Disable D3D9DXVA2Manager on AMD pre UVD4 r=media-playback-reviewers,alwu

With AMD pre UVD4 GPU, hardware video decoding with D3D9DXVA2Manager outputs garbage for some videos.

D3D9DXVA2Manager is used only for fallback from D3D11DXVA2Manager. A new gpu driver normally does not use D3D9DXVA2Manager .

Differential Revision: https://phabricator.services.mozilla.com/D161976
This commit is contained in:
sotaro 2022-11-17 00:56:22 +00:00
Родитель f1b674d43c
Коммит dcd4cc418b
2 изменённых файлов: 11 добавлений и 0 удалений

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

@ -482,6 +482,12 @@ D3D9DXVA2Manager::Init(layers::KnowsCompositor* aKnowsCompositor,
break; break;
} }
} }
if (StaticPrefs::media_wmf_dxva_d3d9_amd_pre_uvd4_disabled() &&
mIsAMDPreUVD4) {
aFailureReason.AssignLiteral(
"D3D9DXVA2Manager is disabled on AMDPreUVD4");
return E_FAIL;
}
} }
RefPtr<IDirect3DSurface9> syncSurf; RefPtr<IDirect3DSurface9> syncSurf;

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

@ -9803,6 +9803,11 @@
value: 8 value: 8
mirror: always mirror: always
- name: media.wmf.dxva.d3d9.amd-pre-uvd4.disabled
type: RelaxedAtomicBool
value: true
mirror: always
- name: media.wmf.use-nv12-format - name: media.wmf.use-nv12-format
type: RelaxedAtomicBool type: RelaxedAtomicBool
value: true value: true