Check the Vulkan runtime status:
ffmpeg -v debug -init_hw_device drm=dr:/dev/dri/renderD128 -init_hw_device vulkan@dr
returns:
[AVHWDeviceContext @ 0x6147fba59240] Opened DRM device /dev/dri/renderD128: driver amdgpu version 3.57.0. Applying option init_hw_device (initialise hardware device) with argument vulkan@dr. [AVHWDeviceContext @ 0x6147fba59380] Supported validation layers: [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_VALVE_steam_overlay_64 [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_VALVE_steam_fossilize_32 [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_VALVE_steam_overlay_32 [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_VALVE_steam_fossilize_64 [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_MESA_device_select [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_INTEL_nullhw [AVHWDeviceContext @ 0x6147fba59380] VK_LAYER_MESA_overlay [AVHWDeviceContext @ 0x6147fba59380] Using instance extension VK_KHR_portability_enumeration [AVHWDeviceContext @ 0x6147fba59380] GPU listing: [AVHWDeviceContext @ 0x6147fba59380] 0: Radeon RX 7900 XTX (RADV NAVI31) (discrete) (0x744c) [AVHWDeviceContext @ 0x6147fba59380] Requested device: 0x744c [AVHWDeviceContext @ 0x6147fba59380] Device 0 selected: Radeon RX 7900 XTX (RADV NAVI31) (discrete) (0x744c) [AVHWDeviceContext @ 0x6147fba59380] Queue families: [AVHWDeviceContext @ 0x6147fba59380] 0: graphics compute transfer (queues: 1) [AVHWDeviceContext @ 0x6147fba59380] 1: compute transfer (queues: 4) [AVHWDeviceContext @ 0x6147fba59380] 2: sparse (queues: 1) [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_KHR_push_descriptor [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_KHR_sampler_ycbcr_conversion [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_EXT_descriptor_buffer [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_EXT_physical_device_drm [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_EXT_shader_atomic_float [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_KHR_cooperative_matrix [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_KHR_external_memory_fd [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_EXT_external_memory_dma_buf [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_EXT_image_drm_format_modifier [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_KHR_external_semaphore_fd [AVHWDeviceContext @ 0x6147fba59380] Using device extension VK_EXT_external_memory_host [AVHWDeviceContext @ 0x6147fba59380] Using device: Radeon RX 7900 XTX (RADV NAVI31) [AVHWDeviceContext @ 0x6147fba59380] Alignments: [AVHWDeviceContext @ 0x6147fba59380] optimalBufferCopyRowPitchAlignment: 1 [AVHWDeviceContext @ 0x6147fba59380] minMemoryMapAlignment: 4096 [AVHWDeviceContext @ 0x6147fba59380] nonCoherentAtomSize: 64 [AVHWDeviceContext @ 0x6147fba59380] minImportedHostPointerAlignment: 4096 [AVHWDeviceContext @ 0x6147fba59380] Using queue family 0 (queues: 1) for graphics [AVHWDeviceContext @ 0x6147fba59380] Using queue family 1 (queues: 4) for compute transfers Successfully parsed a group of options.
NOTE: If you wish to use the second GPU, change renderD128 to renderD129.