Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
TheGarage
Posts: 100
Joined: 2008-03-11 05:46
Has thanked: 1 time

[SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#1 Post by TheGarage »

Recent dist-upgrade seems to have broken my hardware acceleration. It had been working fine for years. I have va-driver-all and libva2 installed. Nothing seems to have been removed. It seems like hardware decoding is actually working as kodi shows it being active when I hit the o key for info and firefox shows the videos are playing, but I get no video only a black screen. No errors show in the terminal when running these applications.

inxi -G shows

Code: Select all

user@hpoffice:~$ inxi -G
Graphics:
  Device-1: AMD Sumo [Radeon HD 6530D] driver: radeon v: kernel
  Display: x11 server: X.Org v: 21.1.10 driver: X: loaded: radeon
    unloaded: fbdev,modesetting,vesa dri: r600 gpu: radeon
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,r600,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.5 vendor: mesa v: 23.3.1-3 renderer: AMD SUMO (DRM
    2.50.0 / 6.6.7-1-siduction-amd64 LLVM 17.0.6)
vainfo shows

Code: Select all

[user@hpoffice:~$ vainfo
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 23.3.1-3 for AMD SUMO (DRM 2.50.0 / 6.6.7-1-siduction-amd64, LLVM 17.0.6)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High10             :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc 



Code: Select all

user@hpoffice:~$ 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                          --- not supported ---
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 ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y 
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y 
CSC_MATRIX                       y 
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y 
LUMA_KEY_MAX_LUMA                y  

Videos play fine in all programs if I disable vaapi acceleration, but really load up my cpu.

Any ideas?

mrmazda
Posts: 339
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#2 Post by mrmazda »

TheGarage wrote: 2023-12-23 01:27Any ideas?
None, other than it looks like it may be worse here on Trixie:

Code: Select all

# inxi -GSaz --vs
inxi 3.3.31-00 (2023-11-02)
System:
  Kernel: 6.5.0-5-amd64 arch: x86_64 bits: 64 compiler: gcc v: 13.2.0
    clocksource: tsc available: hpet,acpi_pm parameters: ro root=/dev/sda19
    noresume consoleblank=0 net.ifnames=0 ipv6.disable=1 mitigations=off
  Desktop: Trinity v: R14.1.2~[DEVELOPMENT] tk: Qt v: 3.5.0 info: kicker
    wm: Twin v: 3.0 vt: 7 dm: 1: TDM 2: XDM Distro: Debian GNU/Linux trixie/sid
Graphics:
  Device-1: AMD Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM] vendor: Dell
    driver: radeon v: kernel alternate: amdgpu arch: TeraScale-2 code: Evergreen
    process: TSMC 32-40nm built: 2009-15 pcie: gen: 2 speed: 5 GT/s lanes: 16
    ports: active: DP-1,DVI-I-1 empty: none bus-ID: 01:00.0 chip-ID: 1002:6779
    class-ID: 0300 temp: 53.0 C
  Display: x11 server: X.Org v: 21.1.9 driver: X: loaded: modesetting
    alternate: fbdev,vesa dri: r600 gpu: radeon display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3600x1200 s-dpi: 120 s-size: 762x254mm (30.00x10.00")
    s-diag: 803mm (31.62")
  Monitor-1: DP-1 pos: primary,left model: NEC EA243WM serial: <filter>
    built: 2011 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
    size: 519x324mm (20.43x12.76") diag: 612mm (24.1") ratio: 16:10 modes:
    max: 1920x1200 min: 640x480
  Monitor-2: DVI-I-1 pos: right model: Dell P2213 serial: <filter>
    built: 2012 res: 1680x1050 hz: 60 dpi: 90 gamma: 1.2
    size: 473x296mm (18.62x11.65") diag: 558mm (22") ratio: 16:10 modes:
    max: 1680x1050 min: 720x400
  API: EGL v: 1.5 hw: drv: amd r600 platforms: device: 0 drv: r600 device: 1
    drv: swrast gbm: drv: r600 surfaceless: drv: r600 x11: drv: r600
    inactive: wayland
  API: OpenGL v: 4.5 vendor: mesa v: 23.2.1-1 glx-v: 1.4 es-v: 3.1
    direct-render: yes renderer: AMD CAICOS (DRM 2.50.0 / 6.5.0-5-amd64 LLVM
    16.0.6) device-ID: 1002:6779 memory: 1000 MiB unified: no
# dpkg-query -W | egrep 'libva|mesa|radeon'
libdrm-radeon1:amd64    2.4.117-1
libegl-mesa0:amd64      23.2.1-1
libgl1-mesa-dri:amd64   23.2.1-1
libgl1-mesa-glx:amd64   22.3.6-1+deb12u1
libglapi-mesa:amd64     23.2.1-1
libglu1-mesa:amd64      9.0.2-1.1
libglx-mesa0:amd64      23.2.1-1
libva-drm2:amd64        2.20.0-2
libva-wayland2:amd64    2.20.0-2
libva-x11-2:amd64       2.20.0-2
libva2:amd64    2.20.0-2
mesa-utils      8.5.0-1
mesa-utils-bin:amd64    8.5.0-1
mesa-vdpau-drivers:amd64        23.2.1-1
radeontop       1.4-2
# 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                          --- not supported ---
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 ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48     2048
VIDEO_SURFACE_HEIGHT             y        48     1152
CHROMA_TYPE                      y
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y
CSC_MATRIX                       y
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y
LUMA_KEY_MAX_LUMA                y
# vainfo
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/r600_drv_video.so
libva info: va_openDriver() returns -1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
#

User avatar
sunrat
Administrator
Administrator
Posts: 6511
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 119 times
Been thanked: 489 times

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#3 Post by sunrat »

Is this on siduction? They use their own kernel, not a Debian one, so it may be best to ask on siduction forum.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

TheGarage
Posts: 100
Joined: 2008-03-11 05:46
Has thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#4 Post by TheGarage »

sunrat wrote: 2023-12-23 06:17 Is this on siduction? They use their own kernel, not a Debian one, so it may be best to ask on siduction forum.

Yes, it is siduction. Already asked there, no ideas.

I did however install a debian kernel to see if that could be the issue and that didn't work either......so not a kernel issue.

TheGarage
Posts: 100
Joined: 2008-03-11 05:46
Has thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#5 Post by TheGarage »

None, other than it looks like it may be worse here on Trixie:
That doesn't look good. Seems you have the vaapi drivers all installed & the system either can't find them or can't load them. Do you have mesa-va-drivers installed?

mrmazda
Posts: 339
Joined: 2023-06-02 02:22
Has thanked: 9 times
Been thanked: 44 times

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#6 Post by mrmazda »

TheGarage wrote: 2023-12-23 17:40
None, other than it looks like it may be worse here on Trixie:
That doesn't look good. Seems you have the vaapi drivers all installed & the system either can't find them or can't load them. Do you have mesa-va-drivers installed?
I thought my installed packages list was a little short. Now I do. Thanks!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#7 Post by stevepusser »

One could look at /var/log/apt/history.log to see if you can see what might have caused the issue with that dist-upgrade.
MX Linux packager and developer

TheGarage
Posts: 100
Joined: 2008-03-11 05:46
Has thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#8 Post by TheGarage »

stevepusser wrote: 2023-12-24 04:27 One could look at /var/log/apt/history.log to see if you can see what might have caused the issue with that dist-upgrade.

Code: Select all

Start-Date: 2023-12-14  10:14:32
Commandline: apt dist-upgrade
Install: libllvm17:amd64 (1:17.0.6-2, automatic)
Upgrade: libsvtav1enc1d1:amd64 (2:1.7.0-dmo2, 2:1.8.0-dmo1), libxtables12:amd64 (1.8.9-2, 1.8.10-1), chromium-sandbox:amd64 (120.0.6099.71-1, 120.0.6099.109-1), iptables:amd64 (1.8.9-2, 1.8.10-1), libglx-mesa0:amd64 (23.2.1-1, 23.3.1-1), libglusterfs0:amd64 (11.1-1, 11.1-2), libgfapi0:amd64 (11.1-1, 11.1-2), imagemagick-7-common:amd64 (8:7.1.1.22-dmo1, 8:7.1.1.23-dmo1), blt:amd64 (2.5.3+dfsg-4.1, 2.5.3+dfsg-6), libtinfo6:amd64 (6.4+20231121-1, 6.4+20231209-1), xserver-xorg-core:amd64 (2:21.1.9-1, 2:21.1.10-1), ntp:amd64 (1:4.2.8p15+dfsg-2~1.2.2+dfsg1-2, 1:4.2.8p15+dfsg-2~1.2.2+dfsg1-3), libaom3:amd64 (1:3.8.0-dmo1, 1:3.8.0-dmo2), libmagickcore-7-10:amd64 (8:7.1.1.22-dmo1, 8:7.1.1.23-dmo1), tar:amd64 (1.34+dfsg-1.2, 1.34+dfsg-1.3), libgfrpc0:amd64 (11.1-1, 11.1-2), libheif1:amd64 (1.17.1-1+b1, 1.17.4-1), libgbm1:amd64 (23.2.1-1, 23.3.1-1), libheif-plugin-libde265:amd64 (1.17.1-1+b1, 1.17.4-1), libgfxdr0:amd64 (11.1-1, 11.1-2), libmagickwand-7-10:amd64 (8:7.1.1.22-dmo1, 8:7.1.1.23-dmo1), libip4tc2:amd64 (1.8.9-2, 1.8.10-1), irqbalance:amd64 (1.9.2-2, 1.9.3-1), tk8.6-blt2.5:amd64 (2.5.3+dfsg-4.1, 2.5.3+dfsg-6), python-apt-common:amd64 (2.7.0, 2.7.2), libasound2:amd64 (1.2.10-1, 1.2.10-2), chromium:amd64 (120.0.6099.71-1, 120.0.6099.109-1), mesa-va-drivers:amd64 (23.2.1-1, 23.3.1-1), libgl1-mesa-dri:amd64 (23.2.1-1, 23.3.1-1), python3-pycurl:amd64 (7.45.2-6+b1, 7.45.2-7), libegl1-mesa-dev:amd64 (23.2.1-1, 23.3.1-1), python3-scour:amd64 (0.38.2-3, 0.38.2-4), xserver-xorg-legacy:amd64 (2:21.1.9-1, 2:21.1.10-1), python3-pytest:amd64 (7.4.3-1, 7.4.3-2), xserver-common:amd64 (2:21.1.9-1, 2:21.1.10-1), libebml5:amd64 (1:1.4.4-dmo1, 1:1.4.5-dmo1), mesa-vulkan-drivers:amd64 (23.2.1-1, 23.3.1-1), libncurses-dev:amd64 (6.4+20231121-1, 6.4+20231209-1), ncurses-base:amd64 (6.4+20231121-1, 6.4+20231209-1), python3-apt:amd64 (2.7.0+b1, 2.7.2), libatopology2:amd64 (1.2.10-1, 1.2.10-2), geoip-database:amd64 (20231106-1, 20231212-1), libasound2-data:amd64 (1.2.10-1, 1.2.10-2), libip6tc2:amd64 (1.8.9-2, 1.8.10-1), python3-ntp:amd64 (1.2.2+dfsg1-2, 1.2.2+dfsg1-3), libv4l-0:amd64 (1.26.0-1, 1.26.1-2), libavif16:amd64 (1.0.2-1, 1.0.3-1), libglapi-mesa:amd64 (23.2.1-1, 23.3.1-1), sntp:amd64 (1:4.2.8p15+dfsg-2~1.2.2+dfsg1-2, 1:4.2.8p15+dfsg-2~1.2.2+dfsg1-3), chromium-common:amd64 (120.0.6099.71-1, 120.0.6099.109-1), xserver-xorg-input-wacom:amd64 (1.2.0-1, 1.2.0-2), ntpsec-ntpdig:amd64 (1.2.2+dfsg1-2, 1.2.2+dfsg1-3), info2www:amd64 (1.2.2.9-25, 1.2.2.9-26), libitext-java:amd64 (2.1.7-14, 2.1.7-15), libheif-plugin-dav1d:amd64 (1.17.1-1+b1, 1.17.4-1), libv4lconvert0:amd64 (1.26.0-1, 1.26.1-2), needrestart:amd64 (3.6-6, 3.6-7), libegl-mesa0:amd64 (23.2.1-1, 23.3.1-1), xml-core:amd64 (0.18+nmu1, 0.19), libncursesw6:amd64 (6.4+20231121-1, 6.4+20231209-1), ncurses-bin:amd64 (6.4+20231121-1, 6.4+20231209-1), mesa-vdpau-drivers:amd64 (23.2.1-1, 23.3.1-1), libroc0.3:amd64 (0.3.0+dfsg-4, 0.3.0+dfsg-5), ncurses-term:amd64 (6.4+20231121-1, 6.4+20231209-1), tree:amd64 (2.1.1-1, 2.1.1-2), python3-anyio:amd64 (3.7.0-1, 4.1.0-1), ntpsec:amd64 (1.2.2+dfsg1-2, 1.2.2+dfsg1-3), libncurses6:amd64 (6.4+20231121-1, 6.4+20231209-1)
Both xserver-common & mesa both got upgraded that day. I've rolled back mesa with no luck, then yesterday mesa updated to 23.3.1-4. Still no luck. Must be the upgrade to X that killed hardware decoding. I'm not thinking of trying to roll back X, seems to risky. Will just wait hoping for a fix.

TheGarage
Posts: 100
Joined: 2008-03-11 05:46
Has thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#9 Post by TheGarage »

Still fighting this issue but more info. It appears that hardware decoding is working as mpv shows
user@hpoffice:~$ mpv --hwdec '/home/user/Videos/161104 #KISS - C mon and love me #KKVI.mp4'
(+) Video --vid=1 (*) (h264 1280x720 30.000fps)
(+) Audio --aid=1 (*) (aac 1ch 44100Hz)
Cannot load libcuda.so.1
Using hardware decoding (vaapi).
AO: [pulse] 44100Hz mono 1ch float
VO: [gpu] 1280x720 vaapi[nv12]
However even though hardware decoding is working the video displayed is just a black screen......with sound.

So I start mpv with the --hwdec & vo=x11 options & I now have video......
user@hpoffice:~$ mpv --hwdec --vo=x11 '/home/user/Videos/161104 #KISS - C mon and love me #KKVI.mp4'
(+) Video --vid=1 (*) (h264 1280x720 30.000fps)
(+) Audio --aid=1 (*) (aac 1ch 44100Hz)
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
[ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1
[ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA
Using hardware decoding (vaapi-copy).
AO: [pulse] 44100Hz mono 1ch float
VO: [x11] 1280x720 nv12
I have video, but terrible performance. mpv reports "[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO." So I've tried every other vo= option....
user@hpoffice:~$ mpv --vo=help
Available video outputs:
libmpv render API for libmpv
gpu Shader-based GPU Renderer
gpu-next Video output based on libplacebo
vdpau VDPAU with X11
wlshm Wayland SHM video output (software scaling)
xv X11/Xv
sdl SDL 2.0 Renderer
dmabuf-wayland Wayland dmabuf video output
vaapi VA API with X11
x11 X11 (software scaling)
null Null video output
image Write video frames to image files
tct true-color terminals
caca libcaca
drm Direct Rendering Manager (software scaling)
sixel terminal graphics using sixels
kitty Kitty terminal graphics protocol
No other option outputs a video display.

MPV by default outputs to vo=gpu without setting any vo= option. VLC does the same when video output option is set to auto, but also shows video when x11 output is chosen.
Both show black or blank video using vo=gpu, but had been working fine. Now the only way I get video is to specify vo=x11 option which seems I have no "hardware accelerated rendering". But glxinfo shows
user@hpoffice:~$ glxinfo
name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
And glxgears loads & displays properly.

Problem seems to be either xserver-xorg-video-radeon package or the radeon driver in the kernel itself maybe? I reverted to an earlier kernel to check but it made no difference.

I'm confused. How can I have "hardware decoded video", but have to use "software rendered video" which is what vo=x11 does, to view a video?

jim_p
Posts: 28
Joined: 2008-02-07 14:07
Been thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#10 Post by jim_p »

Mesa 23.3.3 reached testing today (update from 23.2.1) and it also broke vaapi on my end. The issue seems to affect all players that can use it, e.g. mpv, mplayer and kodi on my end, and it also seems to be an upstream bug which affects other distros, as you can see here

https://bbs.archlinux.org/viewtopic.php?id=291296
https://gitlab.freedesktop.org/mesa/mesa/-/issues/10468

Because 23.3.3 is the latest stable version of mesa, and as it seems the only way of fixing it is to upgrade to 24.x (experimental has its rc2), sadly all we can do is wait for upstream. But, if possible, please open a bug report for debian to keep track of it. I would, but my main email is banned from the bug report system, so all I can do is participate on open bug reports with my secondary one.

As for the playback, if using xv for mpv's vo output gets us 15 years back when there was no vaapi, using x11 as the vo output returns us to the middle ages of linux. Or to modern day fedora, which has disabled vaapi for amd gpus/drivers since September 2022 :D

p.s. This is my first post after so many years of being away from this forum.

jim_p
Posts: 28
Joined: 2008-02-07 14:07
Been thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#11 Post by jim_p »

Mesa 23.3.4 has reached unstable today. Tbh, I do not see anything relevant in its upstream changelog.
If any unstable user can report that it solves the vaapi issue, it would be beneficial not only for us, but even for users of other distros.

jim_p
Posts: 28
Joined: 2008-02-07 14:07
Been thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#12 Post by jim_p »

And it reached testing today. Sadly, nothing has changed, vaapi is still broken.
There is still not a single bug report about it, just a semi-relevant report at mesa-VDPAU-drivers from Jan 1st which was recently upgraded to serious severity.

Tbh, I did not expect such lack of interest from maintainers and users alike. Is it only me and... 2 more people that use vaapi in 2024?
What else can I do to help? I have posted what arch did to solve the issue at the forementioned bug report. Here is a verbose mpv log from it playing a file.
https://paste.debian.net/hidden/55cf4d0f/

jim_p
Posts: 28
Joined: 2008-02-07 14:07
Been thanked: 1 time

Re: [SID - Unstable] Help! Something Borked my Hardware Aceleration (AMD)

#13 Post by jim_p »

This is my last post on the thread, and probably on the debian forums, because as I have said, there is no interest by others (users and maintainers).

Mesa 23.3.5 reached unstable 10 days ago (and 24.0 reached experimental the same day). I waited and waited for it to reach testing, but it still hasn't, so I just let apt install it from there. It still does not solve the issue.

What annoys me is the maintainers' position on the subject, because they said "the bug is solved on v24" and simply closed the bug report. No, "closed" is an understatement here. They simply... swept it under the carpet, and that is for a bug which was rated as serious!
Please note that arch has patched it somehow and that there are some reasons on why it happened on the relevant issue report on mesa's repo on gitlab.

So for someone that does not use experimental, what is left to do other than wait for mesa 24 to reach unstable and testing? I hope it reaches it by Easter. Not the catholic one which falls on the end of March, the orthodox one which falls on early May. Until then, we are stuck to the middle ages of media playback without hardware acceleration. Shame.

Post Reply