VLC autoselects wrong "/dev/dri/renderDxxx"
I tried reporting this here: https://github.com/01org/intel-vaapi-driver/issues/293 But they say it is the individual applications responsibility.
I'm on Gentoo Linux, kernel 4.14.2 running VLC 2.2.6. I got 3 GPU's; Integrated i965 used for X11, Radeon R5 230 used for fbcon and a Nvidia card used for KVM. When I set VLC to "VA-API video decoder via DRM" i get the followign result from trying to play a .mkw:
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/r600_drv_video.so
libva info: va_openDriver() returns -1
If I set LIBVA_DRIVER_NAME=i965 and try the same I get:
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
DRM_IOCTL_I915_GEM_APERTURE failed: No such file or directory
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
vlc: /pt/portage/x11-libs/libva-intel-driver-1.8.3/work/intel-vaapi-driver-1.8.3/src/intel_memman.c:38: intel_memman_init: Assertion `intel->bufmgr' failed.
Apparently there needs to be a way to select the correct "/dev/dri/renderDxxx", the intel-libva people says it has to be in VLC and not in libva.