[Howto] AMD Tahiti R9 GPU – no supported hardware video decoding profiles (vaapi / vdpau)

posted in: computer | 0

OS: Debian trixie (v13)

Linux Kernel: 6.4.11-1 x86/64


problem:

vainfo returns only

VAProfileNone : VAEntrypointVideoProc

and all other decoding profiles are “not supported”.


solution:

use the amdgpu driver (and not the radeon driver)

for AMD Southern Island (SI)-Chips:

add radeon.si_support=0 amdgpu.si_support=1 to the Kernel Default-Boot-Parameters in /etc/default/grub.cfg

(radeon-support is disabled, amdgpu-support is enabled)

Afterwards update grub via grub-update command.


X-Desktop configuration:

add the following lines to the /etc/X11/xorg.conf -file:

Section "OutputClass"
    Identifier "AMD"
    MatchDriver "amdgpu"
    Driver "amdgpu"
EndSection

tips:

lspci -k | grep -A 3 -E "(VGA|3D)" lists which gpu driver is in use.

cat /proc/cmdline lists the current kernel boot parameters.


now it should work:

vainfo
libva info: VA-API version 1.19.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_19
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.19 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 23.1.6-1 for AMD Radeon HD 7900 Series (tahiti, LLVM 15.0.7, DRM 3.52, 6.4.0-3-amd64)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
vdpauinfo                                                                                                                                                                                                                                                             
display: :0.0   screen: 0                                                                                                                                                                                                                                                        
API version: 1                                                                                                                                                                                                                                                                   
Information string: G3DVL VDPAU Driver Shared Library version 1.0                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                 
Video surface:                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                 
name   width height types                                                                                                                                                                                                                                                        
-------------------------------------------                                                                                                                                                                                                                                      
420    16384 16384  NV12 YV12                                                                                                                                                                                                                                                    
422    16384 16384  UYVY YUYV                                                                                                                                                                                                                                                    
444    16384 16384  Y8U8V8A8 V8U8Y8A8                                                                                                                                                                                                                                            
420_16 16384 16384                                                                                                                                                                                                                                                               
422_16 16384 16384                                                                                                                                                                                                                                                               
444_16 16384 16384                                                                                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                 
Decoder capabilities:                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                 
name                        level macbs width height                                                                                                                                                                                                                             
----------------------------------------------------                                                                                                                                                                                                                             
MPEG1                           0  9216  2048  1152                                                                                                                                                                                                                              
MPEG2_SIMPLE                    3  9216  2048  1152                                                                                                                                                                                                                              
MPEG2_MAIN                      3  9216  2048  1152                                                                                                                                                                                                                              
H264_BASELINE                  41  9216  2048  1152                                                                                                                                                                                                                              
H264_MAIN                      41  9216  2048  1152                                                                                                                                                                                                                              
H264_HIGH                      41  9216  2048  1152                                                                                                                                                                                                                              
VC1_SIMPLE                      1  9216  2048  1152                                                                                                                                                                                                                              
VC1_MAIN                        2  9216  2048  1152                                                                                                                                                                                                                              
VC1_ADVANCED                    4  9216  2048  1152                                                                                                                                                                                                                              
MPEG4_PART2_SP                  3  9216  2048  1152                                                                                                                                                                                                                              
MPEG4_PART2_ASP                 5  9216  2048  1152                                                                                                                                                                                                                              
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       0  9216  2048  1152                                                                                                                                                                                                                              
H264_EXTENDED                  --- not supported ---                                                                                                                                                                                                                             
H264_PROGRESSIVE_HIGH          --- not supported ---                                                                                                                                                                                                                             
H264_CONSTRAINED_HIGH          --- not supported ---                                                                                                                                                                                                                             
H264_HIGH_444_PREDICTIVE       --- not supported ---                                                                                                                                                                                                                             
VP9_PROFILE_0                  --- not supported ---                                                                                                                                                                                                                             
VP9_PROFILE_1                  --- not supported ---                                                                                                                                                                                                                             
VP9_PROFILE_2                  --- not supported ---                                                                                                                                                                                                                             
VP9_PROFILE_3                  --- 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 ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---
AV1_MAIN                       --- not supported ---
AV1_HIGH                       --- not supported ---
AV1_PROFESSIONAL               --- not supported ---