WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: intel-vaapi-driver broken in wayland  (Read 99 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1664
intel-vaapi-driver broken in wayland
« on: October 06, 2025, 04:01:00 PM »
Hi Juanito. You are the maintainer of intel-vaapi-driver.tcz. I think it needs a patch in order to work in wayland (e.g., labwc).

I'm on TCL16.2 x86_64. I have this at the very top of my onboot.lst:
Code: [Select]
libva22.tcz
intel-vaapi-driver.tcz

If I boot into X (fluxbox), all is well:
Code: [Select]
$ vainfo
Trying display: wayland
Trying display: x11
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge 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
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
But if I boot into wayland (labwc)--same machine and same extensions loaded--I get this:
Code: [Select]
$ vainfo
Trying display: wayland
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_22
error: failed to resolve wl_drm_interface(): /usr/local/lib/libEGL.so.1: undefined symbol: wl_drm_interface
libva error: /usr/local/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

Apparently libva 2.22.0 broke something and now this patch is needed for intel-vaapi-driver: https://github.com/intel/intel-vaapi-driver/pull/566

Would you be able to repackage intel-vaapi-driver.tcz with this patch?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15268
Re: intel-vaapi-driver broken in wayland
« Reply #1 on: October 06, 2025, 05:14:25 PM »
Sure, but it’ll have to wait until the weekend 🙂

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1664
Re: intel-vaapi-driver broken in wayland
« Reply #2 on: October 06, 2025, 11:11:29 PM »
No worries. Thank you.

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1664
Re: intel-vaapi-driver broken in wayland
« Reply #3 on: Today at 09:53:56 AM »
Hi Juanito. I patched intel-vaapi-driver.tcz for testing and for my own use.

I can confirm that even though vainfo is still reporting an error in wayland environment, the expected "supported profile" and "entrypoints" are showing up now:

Code: [Select]
$ vainfo
Trying display: wayland
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/local/lib/dri/iHD_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_22
error: failed to resolve wl_drm_interface(): /usr/local/lib/libEGL.so.1: undefined symbol: wl_drm_interface
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Ivybridge 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
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD

I can also confirm that applications can now use video acceleration. For example, mpv reports hardware decoding is being used (and it's telling the truth because  top  shows mpv using much less CPU than usual) when I run it like this:
Code: [Select]
$ mpv --vo=gpu --hwdec=vaapi some_movie_encoded_with_H264.mkv
Would you like me to make the necessary updates to metadata files and submit this patched intel-vaapi-driver.tcz for the x86_64 repo?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15268
Re: intel-vaapi-driver broken in wayland
« Reply #4 on: Today at 10:42:48 AM »
Please go ahead

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1664
Re: intel-vaapi-driver broken in wayland
« Reply #5 on: Today at 10:54:16 AM »
Submitted.