macchrome / linchrome

ungoogled chromium portablelinux
71 stars 1 forks source link

VAAPI not work with Wayland #19

Closed vampywiz17 closed 2 years ago

vampywiz17 commented 2 years ago

Hello there,

If i start this browser with X11 it work well but with Wayland VAAPI not work...

X11

linchrome --enable-features=VaapiVideoDecoder --enable-clear-hevc-for-testing
[9633:9633:1214/151630.575809:ERROR:vaapi_wrapper.cc(789)] vaQueryConfigEntrypoints failed, VA error: the requested VAProfile is not supported
[9633:9633:1214/151630.580630:ERROR:vaapi_wrapper.cc(789)] vaQueryConfigEntrypoints failed, VA error: the requested VAProfile is not supported
[9633:9633:1214/151630.580758:ERROR:vaapi_wrapper.cc(789)] vaQueryConfigEntrypoints failed, VA error: the requested VAProfile is not supported
[9633:9633:1214/151630.580854:ERROR:vaapi_wrapper.cc(789)] vaQueryConfigEntrypoints failed, VA error: the requested VAProfile is not supported
[9633:9633:1214/151630.617958:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[9604:9616:1214/151634.107599:ERROR:chrome_browser_main_extra_parts_metrics.cc(226)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
[9604:9616:1214/151634.107659:ERROR:chrome_browser_main_extra_parts_metrics.cc(229)] crbug.com/1216328: Checking Bluetooth availability ended.
[9604:9616:1214/151634.107692:ERROR:chrome_browser_main_extra_parts_metrics.cc(232)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[9604:9616:1214/151634.136806:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status ended.

vainfo 
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD

Wayland:

linchrome --enable-features=VaapiVideoDecoder --enable-clear-hevc-for-testing
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[12445:12445:1214/155635.696088:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[12416:12470:1214/155639.158833:ERROR:chrome_browser_main_extra_parts_metrics.cc(226)] crbug.com/1216328: Checking Bluetooth availability started. Please report if there is no report that this ends.
[12416:12470:1214/155639.158872:ERROR:chrome_browser_main_extra_parts_metrics.cc(229)] crbug.com/1216328: Checking Bluetooth availability ended.
[12416:12470:1214/155639.158896:ERROR:chrome_browser_main_extra_parts_metrics.cc(232)] crbug.com/1216328: Checking default browser status started. Please report if there is no report that this ends.
[12416:12470:1214/155639.192118:ERROR:chrome_browser_main_extra_parts_metrics.cc(236)] crbug.com/1216328: Checking default browser status ended.

vainfo 
libva info: VA-API version 1.13.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.13 (libva 2.13.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Mobile - 2.4.1
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
macchrome commented 2 years ago

As it says in the release description, this is a portable version of ungoogled chromium for Linux; vaapi is not a standard component. I only guarantee vaapi under GL.

I'm not prepared to do bespoke builds (for public release) with parameters such as use_intel_minigbm=true.

Vaapi and wayland is not supported by default. The best that I am prepared to do is to apply 0001-ozone-wayland-add-VA-API-support.patch from the guys at https://aur.archlinux.org/packages/chromium-wayland-vaapi/

I've tested the patch: vaapi hardware acceleration works.

Ubuntu 18.04.6 LTS - Bionic Beaver

https://bugs.archlinux.org/task/67035 ...

Comment by Giusy (digitalone) - Monday, 29 November 2021, 21:59 GMT Supports vaapi on XWayland, not native Wayland (default for Chrome)

Edit: vaapi (with aforementioned patch) works under both Xwayland and native Wayland

https://github.com/macchrome/linchrome/releases/download/v96.0.4664.110-r929512-portable-ungoogled-Lin64/ungoogled-chromium_96.0.4664.110_4.vaapi_wayland_linux.tar.xz

For native Wayland: --enable-features=UseOzonePlatform --ozone-platform=wayland --use-gl=egl

For XWayland: --use-gl=egl