From f7f16136388b3f3ef17b0bdacf4e9eb3e7900aca Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 7 Nov 2021 08:18:54 +0100 Subject: [PATCH] hwcontext_vulkan: report device that's used Not sure why this wasn't done before. --- libavutil/hwcontext_vulkan.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 91bca22d48..6aba9e3b8e 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c @@ -885,8 +885,13 @@ static int find_device(AVHWDeviceContext *ctx, VulkanDeviceSelection *select) } end: - if (choice > -1) + if (choice > -1) { + av_log(ctx, AV_LOG_VERBOSE, "Device %d selected: %s (%s) (0x%x)\n", + choice, prop[choice].properties.deviceName, + vk_dev_type(prop[choice].properties.deviceType), + prop[choice].properties.deviceID); hwctx->phys_dev = devices[choice]; + } av_free(devices); av_free(prop);