Hello,
I am having trouble initializing the i965 driver on a headless Skylake
system running Ubuntu 16.04.
$ ./vainfo
error: can't connect to X server!
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva
error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
Running it with i965 specified in the environment, I get the following:
$ LIBVA_DRIVER_NAME=i965 VA_INTEL_DEBUG=1 ./vainfo
error: can't connect to X server!
libva info: VA-API version 1.4.0
libva info: va_getDriverName() returns -1
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_3
g_intel_debug_option_flags:1
vainfo: intel_driver.c:113: intel_driver_init: Assertion `((((struct
drm_state *)(ctx)->drm_state)->auth_type == (VA_DRM_AUTH_DRI1)) ||
(((struct drm_state *)(ctx)->drm_state)->auth_type == (VA_DRM_AUTH_DRI2))
|| (((struct drm_state *)(ctx)->drm_state)->auth_type ==
(VA_DRM_AUTH_CUSTOM)))' failed.
Aborted (core dumped)
I have backported 2.4.0-1 Ubuntu .debs of the libva packages (libva-dev,
libva-drm2, libva-glx2, libva-wayland2, libva-x11-2, libva2) installed,
along with i965-va-driver built from source from the 2.3.0 release. I had
the same issue with backported 2.3.0-2 libva .debs. My libdrm packages are
version 2.4.91-2 and Mesa packages are version 18.0.5.
lscpu reports that my CPU is Intel(R) Core(TM) i7-6700TE CPU @ 2.40GHz, and
lspci reports that the graphics chip is Intel Corporation Sky Lake
Integrated Graphics (rev 06).
My user is in the video group and has access to /dev/dri/card0. The kernel
has the i915 and drm modules loaded.
I'm trying to do hardware-accelerated video encoding from an application
through OpenCV and Intel Media SDK, which ultimately uses libva. This code
(and the vainfo command) works fine on a separate machine with a different
Skylake processor running X (and with the X server killed). That machine
reports Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz and Intel Corporation
Skylake GT2 [HD Graphics 520] (rev 07).
--
Aaron Mavrinac | Staff Autonomy Developer - Perception
226 246 2071 mobile
1425 Strasburg Rd. Suite 2A | Kitchener, ON N2R 1H2, Canada
amavrinac(a)clearpath.ai |
www.ottomotors.com