Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: throwaway927832 on 31 October 2024, 18:03:18

Title: VAAPI is broken in Wayland
Post by: throwaway927832 on 31 October 2024, 18:03:18
Since maybe september/october VAAPI (can't pinpoint exact versions, sorry) is broken for me on wayland (KDE).
I have a Sandy Bridge gen CPU therefore I'm using libva-intel-driver, with LIBVA_DRIVER_NAME set to 'i965' as it should.

mpv gives the following error:
Code: [Select]
error: failed to resolve wl_drm_interface(): /usr/lib/libEGL_mesa.so.0: undefined symbol: wl_drm_interface
[vaapi] libva: /usr/lib/dri/i965_drv_video.so init failed
and vainfo:
Code: [Select]
Trying display: wayland
error: failed to resolve wl_drm_interface(): /usr/lib/libEGL_mesa.so.0: undefined symbol: wl_drm_interface
libva error: /usr/lib/dri/i965_drv_video.so init failed
vaInitialize failed with error code -1 (unknown libva error),exit
I haven't tried in other wayland compositors, but I can certainly be sure that error will still be there.

Of course in Xorg it Just Works™.
Title: Re: VAAPI is broken in Wayland
Post by: gripped on 31 October 2024, 20:19:24
Make sure you haven't done a 'partial upgrade' in any way shape or form.

Read https://gitlab.archlinux.org/archlinux/packaging/packages/libva-intel-driver/-/merge_requests/1
I have no idea if that patch will still apply ?

Or the sane approach (imho). Use Xorg.
Title: Re: VAAPI is broken in Wayland
Post by: throwaway927832 on 31 October 2024, 20:24:49
Make sure you haven't done a 'partial upgrade' in any way shape or form.
I haven't done any partial update.

Read https://gitlab.archlinux.org/archlinux/packaging/packages/libva-intel-driver/-/merge_requests/1
I have no idea if that patch will still apply ?
Apparently some related fix already got merged upstream some days ago: https://github.com/intel/intel-vaapi-driver/pull/566#issuecomment-2439962936
Now I only have to wait for the updated version to hit the repos so... solved already?

Side note: So after that patch, the intel-vaapi-driver got killed? Really? Even though old computers still work fine? Man these people... Hopefully someone will fork it and keep fixing any problems...

Or the sane approach (imho). Use Xorg.

I wish but sooner or later R*d h*t will kill Xorg and Mesa developers will refuse to keep supporting Xorg. Also on Wayland I can use portals so I get a sane file picker (not that gtk garbage).

Title: Re: VAAPI is broken in Wayland
Post by: Artist on 31 October 2024, 21:24:45
Pls provide more details, starting with the output of commands:
- mpv
- pacman -Q mesa
- ls -l /usr/lib/libEGL_mesa.so.0
- lspci|grep Graphics

artistusr
Title: Re: VAAPI is broken in Wayland
Post by: throwaway927832 on 06 November 2024, 18:24:12
I installed libva-intel-driver-git from the AUR, indeed the patch fixes the issue, so I will mark it as solved.
Still no signs of a new formal release from upstream containing the bugfix...