Enable VA-API (rhbz#2115253)

This commit is contained in:
Martin Stransky 2022-08-04 11:48:18 +02:00
parent d9f5bf9ed4
commit bd3fc12e39
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,18 @@
diff -up firefox-103.0/gfx/thebes/gfxPlatformGtk.cpp.enable-vaapi firefox-103.0/gfx/thebes/gfxPlatformGtk.cpp
--- firefox-103.0/gfx/thebes/gfxPlatformGtk.cpp.enable-vaapi 2022-07-18 20:44:04.000000000 +0200
+++ firefox-103.0/gfx/thebes/gfxPlatformGtk.cpp 2022-08-04 11:41:18.109583874 +0200
@@ -232,13 +232,8 @@ void gfxPlatformGtk::InitDmabufConfig()
void gfxPlatformGtk::InitVAAPIConfig() {
FeatureState& feature = gfxConfig::GetFeature(Feature::VAAPI);
#ifdef MOZ_WAYLAND
-# ifdef NIGHTLY_BUILD
feature.EnableByDefault();
-# else
- feature.DisableByDefault(FeatureStatus::Disabled,
- "VAAPI is disabled by default",
- "FEATURE_VAAPI_DISABLED"_ns);
-# endif
+
nsCString failureId;
int32_t status;
nsCOMPtr<nsIGfxInfo> gfxInfo = components::GfxInfo::Service();

View File

@ -250,6 +250,7 @@ Patch224: mozilla-1170092.patch
Patch226: rhbz-1354671.patch Patch226: rhbz-1354671.patch
Patch228: disable-openh264-download.patch Patch228: disable-openh264-download.patch
Patch229: firefox-nss-addon-hack.patch Patch229: firefox-nss-addon-hack.patch
Patch230: firefox-enable-vaapi.patch
# Upstream patches # Upstream patches
Patch402: mozilla-1196777.patch Patch402: mozilla-1196777.patch
@ -513,6 +514,7 @@ This package contains results of tests executed during build.
%endif %endif
%patch228 -p1 -b .disable-openh264-download %patch228 -p1 -b .disable-openh264-download
%patch229 -p1 -b .firefox-nss-addon-hack %patch229 -p1 -b .firefox-nss-addon-hack
%patch230 -p1 -b .firefox-enable-vaapi
%patch402 -p1 -b .1196777 %patch402 -p1 -b .1196777
%patch407 -p1 -b .1667096 %patch407 -p1 -b .1667096
@ -1119,6 +1121,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog %changelog
* Thu Aug 4 2022 Martin Stransky <stransky@redhat.com>- 103.0.1-2 * Thu Aug 4 2022 Martin Stransky <stransky@redhat.com>- 103.0.1-2
- Added arm build fixes by Gabriel Hojda - Added arm build fixes by Gabriel Hojda
- Enable VA-API (rhbz#2115253)
* Tue Aug 2 2022 Martin Stransky <stransky@redhat.com>- 103.0.1-1 * Tue Aug 2 2022 Martin Stransky <stransky@redhat.com>- 103.0.1-1
- Update to 103.0.1 - Update to 103.0.1