Commit 28fb0f59 authored by stransky's avatar stransky
Browse files

Bug 1823333 [VAAPI] Fix FEATURE_HW_DECODED_VIDEO_ZERO_COPY handling as it's...

Bug 1823333 [VAAPI] Fix FEATURE_HW_DECODED_VIDEO_ZERO_COPY handling as it's allowlisted feature r=gfx-reviewers,aosmond, a=dsmith

Differential Revision: https://phabricator.services.mozilla.com/D173573
parent 5a6f81ba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ bool gfxPlatformGtk::InitVAAPIConfig(bool aForceEnabledByUser) {
      } else if (status == nsIGfxInfo::FEATURE_BLOCKED_PLATFORM_TEST) {
        featureZeroCopy.ForceDisable(FeatureStatus::Unavailable,
                                     "Force disabled by gfxInfo", failureId);
      } else if (status != nsIGfxInfo::FEATURE_STATUS_OK) {
      } else if (status != nsIGfxInfo::FEATURE_ALLOW_ALWAYS) {
        featureZeroCopy.Disable(FeatureStatus::Blocklisted,
                                "Blocklisted by gfxInfo", failureId);
      }
+7 −1
Original line number Diff line number Diff line
@@ -819,7 +819,13 @@ const nsTArray<GfxDriverInfo>& GfxInfo::GetGfxDriverInfo() {
                               "FEATURE_HARDWARE_VIDEO_DECODING_DISABLE", "");
#endif
    ////////////////////////////////////
    // HW_DECODED_VIDEO_ZERO_COPY
    // FEATURE_HW_DECODED_VIDEO_ZERO_COPY - ALLOWLIST
    APPEND_TO_DRIVER_BLOCKLIST2(OperatingSystem::Linux, DeviceFamily::All,
                                nsIGfxInfo::FEATURE_HW_DECODED_VIDEO_ZERO_COPY,
                                nsIGfxInfo::FEATURE_ALLOW_ALWAYS,
                                DRIVER_COMPARISON_IGNORED, V(0, 0, 0, 0),
                                "FEATURE_ROLLOUT_ALL");

    // Disable on all AMD devices using Mesa (Bug 1802844).
    APPEND_TO_DRIVER_BLOCKLIST_EXT(
        OperatingSystem::Linux, ScreenSizeStatus::All, BatteryStatus::All,