Sunshine icon indicating copy to clipboard operation
Sunshine copied to clipboard

Debian testing: VAAPI not working after update to Mesa 22.2.0~rc1-1

Open falk4243 opened this issue 3 years ago • 0 comments

Describe the Bug

VAAPI encoding doesn't work anymore ("encoder not found") after updating Mesa components from version 22.0.5-1 to 22.2.0~rc1-1 on Debian testing. Software encoding still works as expected.

Expected Behavior

VAAPI continues to work as before with version 22.0.5-1.

Additional Context

I've downgraded to following packages to version 22.0.5-1 in order to make VAAPI encoding work again: libglx-mesa0, libgbm1, libxatracker2, mesa-va-drivers, libgl1-mesa-dri, mesa-vulkan-drivers, libglapi-mesa, libegl-mesa0, mesa-vdpau-drivers (perhaps not all of these need to be downgraded; I went by the update log).

Host Operating System

Linux

Operating System Version

Debian testing

Architecture

64 bit

Sunshine Version

0.14.1 (0.14.0 also affected)

GPU Type

AMD

GPU Model

Vega 8 (Ryzen 5750G APU)

GPU Driver/Mesa Version

22.2.0~rc1-1

Capture Method (Linux Only)

X11 / KMS / Wayland

Relevant log output

[2022:08:10:15:16:39]: Info: Trying encoder [vaapi]
[2022:08:10:15:16:39]: Info: Screencasting with KMS
[2022:08:10:15:16:39]: Info: Found monitor for DRM screencasting
[2022:08:10:15:16:39]: Debug: crtc(5120, 0)
[2022:08:10:15:16:39]: Debug: crtc(2560, 1440)
[2022:08:10:15:16:39]: Debug: plane->possible_crtcs == 1
[2022:08:10:15:16:39]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(67)
[2022:08:10:15:16:39]: Debug: Resolution: 7680x1440: Pitch: 30720: Offset: 0
[2022:08:10:15:16:39]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
[2022:08:10:15:16:39]: Error: Couldn't query entrypoints: the requested VAProfile is not supported
[2022:08:10:15:16:39]: Warning: Monitor 2 doesn't support hardware encoding. Reverting back to GPU -> RAM -> GPU
[2022:08:10:15:16:39]: Info: Found monitor for DRM screencasting
[2022:08:10:15:16:39]: Debug: crtc(5120, 0)
[2022:08:10:15:16:39]: Debug: crtc(2560, 1440)
[2022:08:10:15:16:39]: Debug: plane->possible_crtcs == 1
[2022:08:10:15:16:39]: Debug: x(0) y(0) crtc_x(0) crtc_y(0) crtc_id(67)
[2022:08:10:15:16:39]: Debug: Resolution: 7680x1440: Pitch: 30720: Offset: 0
[2022:08:10:15:16:39]: Debug: Format [XR24, AR24, RA24, XR30, XB30, AR30, AB30, XR48, XB48, AR48, AB48, XB24, AB24, RG16, NV12, P010, XR4H, AR4H, XB4H, AB4H]
[2022:08:10:15:16:39]: Debug: EGL: [Mesa Project]: version [1.5]
[2022:08:10:15:16:39]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2022:08:10:15:16:39]: Debug: GL: vendor: AMD
[2022:08:10:15:16:39]: Debug: GL: renderer: RENOIR (renoir, LLVM 14.0.6, DRM 3.46, 5.18.0-3-amd64)
[2022:08:10:15:16:39]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 22.2.0-rc1
[2022:08:10:15:16:39]: Debug: GL: shader: 4.60
[2022:08:10:15:16:39]: Debug: EGL: [Mesa Project]: version [1.5]
[2022:08:10:15:16:39]: Debug: API's supported: [OpenGL OpenGL_ES ]
[2022:08:10:15:16:39]: Debug: GL: vendor: AMD
[2022:08:10:15:16:39]: Debug: GL: renderer: RENOIR (renoir, LLVM 14.0.6, DRM 3.46, 5.18.0-3-amd64)
[2022:08:10:15:16:39]: Debug: GL: version: 4.6 (Compatibility Profile) Mesa 22.2.0-rc1
[2022:08:10:15:16:39]: Debug: GL: shader: 4.60
[2022:08:10:15:16:39]: Info: Color coding [Rec. 601]
[2022:08:10:15:16:39]: Info: Color range: [JPEG]
libva info: VA-API version 1.15.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_15
libva info: va_openDriver() returns 0
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x3231564e -> nv12.
[AVHWDeviceContext @ 0x55de9d06a880] [2022:08:10:15:16:39]: Debug: vaapi vendor: Mesa Gallium driver 22.2.0-rc1 for RENOIR (renoir, LLVM 14.0.6, DRM 3.46, 5.18.0-3-amd64)
Format 0x30313050 -> p010le.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x36313050 -> unknown.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x30323449 -> yuv420p.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x32315659 -> yuv420p.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x56595559 -> unknown.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x32595559 -> yuyv422.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x59565955 -> uyvy422.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x41524742 -> bgra.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x41424752 -> rgba.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x58524742 -> bgr0.
[AVHWDeviceContext @ 0x55de9d06a880] Format 0x58424752 -> rgb0.
[AVHWDeviceContext @ 0x55de9d06a880] VAAPI driver: Mesa Gallium driver 22.2.0-rc1 for RENOIR (renoir, LLVM 14.0.6, DRM 3.46, 5.18.0-3-amd64).
[AVHWDeviceContext @ 0x55de9d06a880] Driver not found in known nonstandard list, using standard behaviour.
[AVHWFramesContext @ 0x55de9d037940] Created surface 0x1.
[AVHWFramesContext @ 0x55de9d037940] Direct mapping disabled: deriving image does not work: 1 (operation failed).
[h264_vaapi @ 0x55de9d167000] Input surface format is nv12.
[h264_vaapi @ 0x55de9d167000] Compatible profile VAProfileH264High (7) is not supported by driver.
[h264_vaapi @ 0x55de9d167000] No usable encoding profile found.
[2022:08:10:15:16:39]: Error: Could not open codec [h264_vaapi]: Function not implemented

falk4243 avatar Aug 10 '22 13:08 falk4243