chromium-browser-stable-test/chromium-vaapi.patch
Mikhail Novosyolov f1c41a8b59 Adapt VA-API patch for v120
Patched flag was removed, just remove that part of the patch
2023-12-07 23:35:04 +03:00

40 lines
1.9 KiB
Diff

From: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
Subject: Enable VA-API on desktop Linux by default
* enable VaapiVideoDecoderLinuxGL (equivalent of --enable-features=VaapiVideoDecoderLinuxGL)
which is needed to make VA-API work on desktop Linux
* track that VaapiVideoDecoder does not get disabled on updates
* enable HW decoding in WebRTC where possible
(Nostromo video conferencing (moconf.ru) allows to choose a WebRTC codec when creating a room)
Equivalent for Google Chrome without this patch:
$ google-chrome --enable-features=VaapiVideoDecoder,VaapiVideoDecodeLinuxGL
(without HW decoding in WebRTC)
VA-API is also enabled out of the box in Ubuntu's Chromium snap in the hwacc-beta channel:
https://git.launchpad.net/~chromium-team/chromium-browser/+git/snap-from-source/tree/?h=hwacc-beta
See build/chromium-patches/optimization/topic-intel
As a result, this patch makes VA-API work out of the box on Intel GPUs.
Tests showed that it does not work on AMD and Nvidia (with vaapi-driver-vdpau).
--- chromium-114.0.5735.198.orig/media/base/media_switches.cc 2023-07-06 13:31:24.435089557 +0300
+++ chromium-114.0.5735.198/media/base/media_switches.cc 2023-07-06 13:53:23.922855598 +0300
@@ -717,14 +717,15 @@
// chromeos, but needs an experiment on linux.
BASE_FEATURE(kVaapiVideoDecodeLinux,
"VaapiVideoDecoder",
- base::FEATURE_ENABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT); // keep enabled
BASE_FEATURE(kVaapiVideoDecodeLinuxGL,
"VaapiVideoDecodeLinuxGL",
- base::FEATURE_DISABLED_BY_DEFAULT);
+ base::FEATURE_ENABLED_BY_DEFAULT);
BASE_FEATURE(kVaapiVideoEncodeLinux,
"VaapiVideoEncoder",
+ // TODO: test and enable later? See also IS_CHROMEOS bellow.
base::FEATURE_DISABLED_BY_DEFAULT);
// Ignore the non-intel driver blacklist for VaapiVideoDecoder implementations.