Bug#1070440: mesa-va-drivers: vaapi cannot find target for triple amdgcn

2024-05-29 Thread Richard Rosner

This must have been because of a local installation of self compiled Mesa that 
I thought I couldn't get to be used by programs. Removing it solved the issue. 
Case closed, sorry about that.


Bug#1070440: mesa-va-drivers: vaapi cannot find target for triple amdgcn

2024-05-05 Thread Richard
Package: mesa-va-drivers
Version: 24.0.6-1+b1
Severity: important

Dear Maintainer,
I'm not sure if this is the right package to report this issue to, as there
recently have been many package updates due to the time_t transition. But mpv,
VLC and Firefox are no longer able to access VA-API while ffmpeg shows stranger
behavior. I can't say for sure when this breakage happened since Firefox is
gracefully falling back to software decoding and I rarely use mpv or VLC, which
just fail to start (even though mpv has the option hwdec=auto-safe set which
should cause the same behavior as in Firefox.

mpv gives this quite ominous error message:

Cannot load libcuda.so.1
Cannot find target for triple amdgcn-- Unable to find target for this triple
(no targets are registered)
Segmentation fault

That it can't load anything Nvidia related is no surprise, I'm on an AMD Ryzen
7 7840HS without any dGPU. Firmware is installed directly from kerne.org as the
one in Debians repos is way too old.

VLC goes into a little more detail:

libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
Cannot find target for triple amdgcn-- Unable to find target for this triple
(no targets are registered)
Segmentation fault

Firefox is even more verbose:

[RDD 9113: MediaSupervisor #1]: D/FFmpegVideo FFVPX:
FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/av1 Codec ID 226
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: Initialising VA-API FFmpeg
decoder
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   codec av1 : Alliance for
Open Media AV1
libva info: VA-API version 1.20.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:
FFmpegVideoDecoder::GetAcceleratedFormats()
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Profile
H264ConstrainedBaseline:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format p010le
3 15
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Profile H264Main:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format p010le
3 15
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Profile H264High:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec h264 format p010le
3 15
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Profile VP9Profile0:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec vp9 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Profile VP9Profile2:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec vp9 format p010le
3 15
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: vp9 target pixel format
is not supported!
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Profile AV1Profile0:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec av1 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec av1 format p010le
3 15
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec av1 format nv12
3 12
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: codec av1 format p010le
3 15
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Supported accelerated
formats:
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   h264
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   vp9
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   av1
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   VA-API FFmpeg init
successful
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: FFmpegDataDecoder: shutdown
[RDD 9113: MediaSupervisor #1]: D/FFmpegVideo FFVPX:
FFmpegVideoDecoder::FFmpegVideoDecoder MIME video/av1 Codec ID 226
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX: Initialising VA-API FFmpeg
decoder
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   Format av1 is accelerated
[RDD 9113: MediaPDecoder #1]: D/FFmpegVideo FFVPX:   codec av1 : Alliance for
Open Media AV1
[AVHWDeviceContext @ 0x7f5a31931340] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x7f5a31931340] Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x7f5a31931340] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x7f5a31931340] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x7f5a31931340] Format 0x32315659 ->