diff --git a/gfx/thebes/gfxWindowsPlatform.cpp b/gfx/thebes/gfxWindowsPlatform.cpp index a65900c770cd..0f43d8de3023 100644 --- a/gfx/thebes/gfxWindowsPlatform.cpp +++ b/gfx/thebes/gfxWindowsPlatform.cpp @@ -1368,7 +1368,8 @@ void gfxWindowsPlatform::InitializeD3D11Config() { nsCString message; nsCString failureId; - if (!gfxPlatform::IsGfxInfoStatusOkay(nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS, + if (StaticPrefs::layers_d3d11_enable_blacklist_AtStartup() && + !gfxPlatform::IsGfxInfoStatusOkay(nsIGfxInfo::FEATURE_DIRECT3D_11_LAYERS, &message, failureId)) { d3d11.Disable(FeatureStatus::Blacklisted, message.get(), failureId); } diff --git a/modules/libpref/init/StaticPrefList.yaml b/modules/libpref/init/StaticPrefList.yaml index f1dc26ed0f12..ca534f9e2f68 100644 --- a/modules/libpref/init/StaticPrefList.yaml +++ b/modules/libpref/init/StaticPrefList.yaml @@ -3721,6 +3721,11 @@ value: false mirror: once +- name: layers.d3d11.enable-blacklist + type: bool + value: true + mirror: once + - name: layers.deaa.enabled type: RelaxedAtomicBool value: false