Bug 1817269 - Backout Bug 1798245 r=jrmuizel,gfx-reviewers

Bug 1798245 causes Bug 1817269 on Fx 110.

Differential Revision: https://phabricator.services.mozilla.com/D170151
This commit is contained in:
sotaro 2023-02-17 01:47:02 +00:00
parent 9163e54e6a
commit 0561f430e2
3 changed files with 17 additions and 2 deletions

View file

@ -2710,7 +2710,7 @@ void gfxPlatform::InitWebRenderConfig() {
"FEATURE_FAILURE_WR_NO_GFX_INFO"_ns); "FEATURE_FAILURE_WR_NO_GFX_INFO"_ns);
useVideoOverlay = false; useVideoOverlay = false;
} else { } else {
if (status != nsIGfxInfo::FEATURE_STATUS_OK) { if (status != nsIGfxInfo::FEATURE_ALLOW_ALWAYS) {
FeatureState& feature = gfxConfig::GetFeature(Feature::VIDEO_OVERLAY); FeatureState& feature = gfxConfig::GetFeature(Feature::VIDEO_OVERLAY);
feature.DisableByDefault(FeatureStatus::Blocked, feature.DisableByDefault(FeatureStatus::Blocked,
"Blocklisted by gfxInfo", failureId); "Blocklisted by gfxInfo", failureId);

View file

@ -1248,7 +1248,8 @@ bool GfxInfoBase::DoesDriverVendorMatch(const nsAString& aBlocklistVendor,
} }
bool GfxInfoBase::IsFeatureAllowlisted(int32_t aFeature) const { bool GfxInfoBase::IsFeatureAllowlisted(int32_t aFeature) const {
return aFeature == nsIGfxInfo::FEATURE_HW_DECODED_VIDEO_ZERO_COPY; return aFeature == nsIGfxInfo::FEATURE_VIDEO_OVERLAY ||
aFeature == nsIGfxInfo::FEATURE_HW_DECODED_VIDEO_ZERO_COPY;
} }
nsresult GfxInfoBase::GetFeatureStatusImpl( nsresult GfxInfoBase::GetFeatureStatusImpl(

View file

@ -1738,6 +1738,20 @@ const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions, DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
"FEATURE_UNQUALIFIED_P010_NVIDIA"); "FEATURE_UNQUALIFIED_P010_NVIDIA");
////////////////////////////////////
// FEATURE_VIDEO_OVERLAY - ALLOWLIST
#ifdef EARLY_BETA_OR_EARLIER
APPEND_TO_DRIVER_BLOCKLIST2(
OperatingSystem::Windows, DeviceFamily::All,
nsIGfxInfo::FEATURE_VIDEO_OVERLAY, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0), "FEATURE_ROLLOUT_ALL");
#else
APPEND_TO_DRIVER_BLOCKLIST2(
OperatingSystem::Windows, DeviceFamily::IntelAll,
nsIGfxInfo::FEATURE_VIDEO_OVERLAY, nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0), "FEATURE_ROLLOUT_INTEL");
#endif
//////////////////////////////////// ////////////////////////////////////
// FEATURE_HW_DECODED_VIDEO_ZERO_COPY // FEATURE_HW_DECODED_VIDEO_ZERO_COPY