[Bug 266875] multimedia/libva-utils: VAAPI X11 driver only works as root
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Oct 2022 00:33:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266875 Bug ID: 266875 Summary: multimedia/libva-utils: VAAPI X11 driver only works as root Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: jbeich@FreeBSD.org Reporter: edenist-fbz@edenist.net Flags: maintainer-feedback?(jbeich@FreeBSD.org) Assignee: jbeich@FreeBSD.org FreeBSD: 12.3-STABLE FreeBSD 12.3-STABLE stable/12-3a9e60169ee GENERIC amd64 libva-utils: libva-utils-2.15.0 (built via poudriere) Hardware: - Thinkpad X1 [1st gen] - i5-3330u - HD4000 GPU I've had it installed and running on this machine since 10.3 or so without issue, but I recently noticed VAAPI wasn't being used with mpv anymore. Up until somewhat recently, VAAPI was working as a non root user with the x11 driver. Investigating with vainfo has me completely puzzled what has gone wrong. * If I run vainfo --display x11 it fails, but sudo vainfo --display x11 works fine, which suggests a permissions issue. * I am a member of the video group and have access to GPU hardware. * vainfo --display drm works as non-root user, so there appears to be something up with the x11 driver [which just so happens to be what mpv uses for its optimal vaapi implementation]. Here are my console outputs: ~$ vainfo --display x11 error: XDG_RUNTIME_DIR is invalid or not set in the environment. libva info: VA-API version 1.16.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_16 get chip id failed: -1 [13] param: 4, val: 0 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 ~$ sudo vainfo --display x11 error: XDG_RUNTIME_DIR is invalid or not set in the environment. libva info: VA-API version 1.16.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_16 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.16 (libva 2.15.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 ~$ vainfo --display drm libva info: VA-API version 1.16.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_16 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.16 (libva 2.15.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 -- You are receiving this mail because: You are the assignee for the bug.