And mpv works just fine with upstream libva under Wayland without any other changes.
bor@bor-Latitude-E5450:~$ mpv video.mkv
(+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
(+) Audio --aid=1 --alang=en (*) (ac3 2ch 48000Hz)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
wl_drm@22: error 0: authenticate failed
VA error: wayland: Wayland roundtrip error: Protocol error (errno 71)
[vaapi] libva: vaGetDriverNameByIndex() failed with invalid VADisplay, driver_name = (null)
and
bor@bor-Latitude-E5450:~$ LD_LIBRARY_PATH=/home/bor/pkg/lib mpv video.mkv
(+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
(+) Audio --aid=1 --alang=en (*) (ac3 2ch 48000Hz)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
Cannot load libcuda.so.1
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]
And mpv works just fine with upstream libva under Wayland without any other changes.
bor@bor- Latitude- E5450:~ $ mpv video.mkv ByIndex( ) failed with invalid VADisplay, driver_name = (null)
(+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
(+) Audio --aid=1 --alang=en (*) (ac3 2ch 48000Hz)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
wl_drm@22: error 0: authenticate failed
VA error: wayland: Wayland roundtrip error: Protocol error (errno 71)
[vaapi] libva: vaGetDriverName
and
bor@bor- Latitude- E5450:~ $ LD_LIBRARY_ PATH=/home/ bor/pkg/ lib mpv video.mkv
(+) Video --vid=1 (*) (h264 1920x1080 25.000fps)
(+) Audio --aid=1 --alang=en (*) (ac3 2ch 48000Hz)
[vo/gpu/wayland] GNOME's wayland compositor lacks support for the idle inhibit protocol. This means the screen can blank during playback.
Cannot load libcuda.so.1
Using hardware decoding (vaapi).
VO: [gpu] 1920x1080 vaapi[nv12]