[BUG, FIXED] AMDGPU/radeonsi no h264 acceleration?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
steve_v
Guru
Guru
Posts: 445
Joined: Sun Jun 20, 2004 7:39 am
Location: New Zealand

[BUG, FIXED] AMDGPU/radeonsi no h264 acceleration?

Post by steve_v »

Having just upgraded to an AMD card (6700xt), coming from many years of running Nvidia boards and having read what (rather sparse) wikis I could find, I expected to have hardware video decoding for H264 via vaapi and vdpau. Apparently both are supported by the xorg radeonsi driver... However:

Code: Select all

$ vainfo 
libva info: VA-API version 1.10.0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_10
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.10 (libva 2.10.0)
vainfo: Driver version: Mesa Gallium driver 21.1.6 for AMD Radeon RX 6700 XT (NAVY_FLOUNDER, DRM 3.41.0, 5.13.11-gentoo-x86_64, LLVM 12.0.1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

Code: Select all

$ vdpauinfo 
display: :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 1048576 16384 16384
MPEG2_SIMPLE                    3 1048576 16384 16384
MPEG2_MAIN                      3 1048576 16384 16384
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 ---
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 ---
Eh? Really? In 2021? This?
Surely I'm missing something obvious here, right? I mean H264 has been around for a good while now and all.

Ed.
Oh, FFS. :roll: Testing patches now.
Last edited by steve_v on Thu Aug 19, 2021 5:14 am, edited 1 time in total.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
garrison
Apprentice
Apprentice
Posts: 276
Joined: Tue Mar 18, 2003 9:23 am

Post by garrison »

reddit has it https://www.reddit.com/r/linuxquestions ... &context=3
kernel 5.13.10+ should work
steve_v
Guru
Guru
Posts: 445
Joined: Sun Jun 20, 2004 7:39 am
Location: New Zealand

Post by steve_v »

garrison wrote:kernel 5.13.10+ should work
It's a regression in 5.13.11, fixed in 5.13.12 which just hit portage. Someone misplaced a half-dozen lines.
Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.
Post Reply