You are not logged in.

#1 2017-11-19 20:26:28

jbssm
Member
Registered: 2017-10-28
Posts: 21

GPU acceleration on Lenovo T470 doesn't work in apps

According to the Lenovo T470 Arch page hardware acceleration for i965 is suposed to work using va-api, but in fact, at least in vlc and mpv it doesn't work.

After configuring the environment variables as:

>>> cat /etc/environment                                                                                                                                                    
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
LIBVA_DRIVER_NAME='i965'
VDPAU_DRIVER='va_gl'

vainfo output:

>>> vainfo                                                                                                                                                                  
libva info: VA-API version 1.0.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.0 (libva 2.0.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.0.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Simple            :	VAEntrypointEncSlice
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD

vdpauinfo output:

>>> vdpauinfo                                                                                                                                                               
display: :0   screen: 0
libva info: VA-API version 1.0.0
libva info: va_getDriverName() returns -1
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /usr/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
API version: 1
Information string: OpenGL/VAAPI backend for VDPAU

Video surface:

name   width height types
-------------------------------------------
420     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
422     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
444     4096  4096  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                          --- not supported ---
MPEG2_SIMPLE                   --- not supported ---
MPEG2_MAIN                     --- not supported ---
H264_BASELINE                  --- not supported ---
H264_MAIN                      --- not supported ---
H264_HIGH                      --- not supported ---
VC1_SIMPLE                     --- not supported ---
VC1_MAIN                       --- not supported ---
VC1_ADVANCED                   --- not supported ---
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---

When trying to play something in VLC I get:

>>>  vlc Sintel.2010.1080p.mkv                                                                                                                                              
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[000055e3539f6398] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000055e353b35d78] skins2 interface error: no suitable dialogs provider found (hint: compile the qt4 plugin, and make sure it is loaded properly)
[000055e353b35d78] skins2 interface error: cannot instantiate qt4 dialogs provider
[000055e353b35d78] [cli] lua interface: Listening on host "*console".
VLC media player 2.2.6 Umbrella
Command Line Interface initialized. Type `help' for help.
> libva info: VA-API version 1.0.0
libva info: va_getDriverName() returns -1
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /usr/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
[00007f3c60000c18] vdpau_avcodec generic error: decoder profile not supported: 8
libva info: VA-API version 1.0.0
libva info: va_getDriverName() returns -1
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /usr/lib/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1

Offline

#2 2017-11-19 20:53:58

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: GPU acceleration on Lenovo T470 doesn't work in apps

Are you using wayland or xorg? As far as I understand, vdpau doesn't work in a wayland environment.
https://github.com/i-rinat/libvdpau-va- … -283436750

At least for mpv, you should be able to choose the va-api backend instead of vdpau and the wrapper, though
https://wiki.archlinux.org/index.php/Mp … e_decoding

Last edited by progandy (2017-11-19 20:56:13)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2017-11-25 20:05:01

jbssm
Member
Registered: 2017-10-28
Posts: 21

Re: GPU acceleration on Lenovo T470 doesn't work in apps

Well, it loads the VDPAU correctly on my Thinkpad X230 just fine (I didn't try to check for aceleration in apps) with exactly the same configuration and Gnome 3 as well.

In the Thinkpad T470 it doesn't even load VDPAU. So there is something here at play other than wayland.

Offline

Board footer

Powered by FluxBB