ffmpeg h264_amf was working with previous amdgpu-pro-installer and opencl-amd since 21.50.2_1384495-1 h264_amf won't load.
I saw a new dependency for rocm-opencl-runtime, so i removed opencl-amd and installed all dependency : hsakmt-roct rocm-cmake rocm-llvm rocm-device-libs comgr hsa-amd-aqlprofile-bin hsa-rocr rocm-opencl-runtime
Still AMF is dead :
<some ffmpeg h264_amf compression that works with software encoding and worked with amf before update>
[auto_scale_0 @ 0x5623a0546f80] w:1280 h:720 fmt:rgb24 sar:1/1 -> w:1280 h:720 fmt:nv12 sar:1/1 flags:0x0
[h264_amf @ 0x5623a053d380] AMF initialisation succeeded via Vulkan.
0122-02-08 19:57:56 A5712900 [AMFEncoderCoreH264] Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(186):Assertion failed:Failed to create service!
0122-02-08 19:57:56 A5712900 [AMFEncoderCoreH264] Error: ../../../../../runtime/src/components/EncoderCore/EncoderCoreH264Impl.cpp(318):AMF_ERROR 1 : AMF_FAIL: Failed to create encode service!
0122-02-08 19:57:56 A5712900 [AMFEncoderCoreH264] Warning: CreateServices failed.
[h264_amf @ 0x5623a053d740] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 1
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
~/uname -a
Linux punch 5.16.12-zen1-1-zen #1 ZEN SMP PREEMPT Wed, 02 Mar 2022 12:22:53 +0000 x86_64 GNU/Linux
~/clinfo
Number of platforms 1
Platform Name AMD Accelerated Parallel Processing
Platform Vendor Advanced Micro Devices, Inc.
Platform Version OpenCL 2.2 AMD-APP.dbg (3406.0)
Platform Profile FULL_PROFILE
Platform Extensions cl_khr_icd cl_amd_event_callback
Platform Extensions function suffix AMD
Platform Host timer resolution 1ns
Platform Name AMD Accelerated Parallel Processing
Number of devices 1
Device Name gfx1010:xnack-
Device Vendor Advanced Micro Devices, Inc.
Device Vendor ID 0x1002
Device Version OpenCL 2.0
Driver Version 3406.0 (HSA1.1,LC)
Device OpenCL C Version OpenCL C 2.0
Device Type GPU
Device Board Name (AMD) AMD Radeon RX 5700 XT
Device PCI-e ID (AMD) 0x731f
Device Topology (AMD) PCI-E, 0000:2f:00.0
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 20
SIMD per compute unit (AMD) 4
SIMD width (AMD) 32
SIMD instruction width (AMD) 1
Max clock frequency 2100MHz
Graphics IP (AMD) 10.1
Device Partition (core)
Max number of sub-devices 20
Supported partition types None
Supported affinity domains (n/a)
....
~/lspci -k
...
2f:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1)
Subsystem: Gigabyte Technology Co., Ltd Radeon RX 5700 XT Gaming OC
Kernel driver in use: amdgpu
Kernel modules: amdgpu
~/echo $VK_ICD_FILENAMES
/usr/share/vulkan/icd.d/amd_pro_icd64.json
~/vulkaninfo
ERROR: [Loader Message] Code 0 : loader_scanned_icd_add: Driver /usr/lib/amdvlkpro64.so says it supports interface version 6 but still exports core entrypoints (Policy #LDP_DRIVER_6)
==========
VULKANINFO
==========
Vulkan Instance Version: 1.2.203
..
GPU id : 0 (AMD Radeon RX 5700 XT):
...
Surface type = VK_KHR_wayland_surface
Formats: count = 2
SurfaceFormat[0]:
format = FORMAT_B8G8R8A8_UNORM
colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
SurfaceFormat[1]:
format = FORMAT_B8G8R8A8_SRGB
colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
Present Modes: count = 3
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_FIFO_KHR
..
~/wayland-info
interface: 'wl_compositor', version: 4, name: 1
interface: 'zwp_tablet_manager_v2', version: 1, name: 2
interface: 'zwp_keyboard_shortcuts_inhibit_manager_v1', version: 1, name: 3
interface: 'xdg_wm_base', version: 3, name: 5
interface: 'zwlr_layer_shell_v1', version: 3, name: 6
interface: 'zxdg_decoration_manager_v1', version: 1, name: 7
interface: 'wp_viewporter', version: 1, name: 8
interface: 'wl_shm', version: 1, name: 9
formats: 'XB30'(0x30334258) 'AB30'(0x30334241) 'XR30'(0x30335258) 'AR30'(0x30335241) XRGB8888 ARGB8888
..
interface: 'kde_output_device_v2', version: 2, name: 42
interface: 'wl_output', version: 3, name: 43
x: 0, y: 0, scale: 1,
physical_width: 710 mm, physical_height: 400 mm,
make: 'BNQ', model: 'BenQ BL3200/GCE00501SL0',
subpixel_orientation: unknown, output_transform: normal,
mode:
width: 2560 px, height: 1440 px, refresh: 59.951 Hz,
flags: current
....
Any clue why that "encode service" won't run ? (under X11 it crashes the same)
strace says the error pops in the new library "libamdenc64.so"
Checking out V21.30 (instead of V21.50.2) and installing repairs AMF encoding.
Pinned Comments
mesmer commented on 2022-12-23 04:31 (UTC) (edited on 2023-05-28 19:28 (UTC) by mesmer)
IF PROBLEM HAPPEN
this package is our try to put amdgpu in ARCH, but this could break or have problems as amd update and change their packages for ubuntu
if anything happens you can always download a older tag in https://github.com/Ashark/archlinux-amdgpu-pro/releases and get the PKGBUILD there, and use makepkg with that build while we update or try to fix :)
ALWAYS USE LINUX-FIRMWARE-GIT IF LATEST DRIVER FAIL BEFORE ISSUE SOME ERROR
https://aur.archlinux.org/packages/linux-firmware-git
Ashark commented on 2019-12-09 20:52 (UTC) (edited on 2022-12-06 08:45 (UTC) by Ashark)
PKGBUILD generator is located here: https://github.com/Ashark/archlinux-amdgpu-pro
AMDGPU PRO wiki page: https://wiki.archlinux.org/index.php/AMDGPU_PRO
New versions will appear here: https://repo.radeon.com/amdgpu/.