Bug 1798245 - Enable video overlay without ZeroCopyNV12Texture with non-intel GPUs to release r=jrmuizel,gfx-reviewers

Bug 1798242 did not cause a regression. Then it seems OK to try to enable video overlay without ZeroCopyNV12Texture with non-intel GPUs to release.

Differential Revision: https://phabricator.services.mozilla.com/D164634
This commit is contained in:
sotaro 2022-12-16 00:54:14 +00:00
parent 8b66c0797a
commit 9df22d9664
3 changed files with 2 additions and 17 deletions

View File

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

View File

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

View File

@ -1743,20 +1743,6 @@ const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
DRIVER_LESS_THAN, GfxDriverInfo::allDriverVersions,
"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