summaryrefslogtreecommitdiff
path: root/libavutil/hwcontext_vulkan.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-07 08:18:54 +0100
committerLynne <dev@lynne.ee>2021-11-12 05:23:39 +0100
commitf7f16136388b3f3ef17b0bdacf4e9eb3e7900aca (patch)
tree8f3348d0cfef267e77d0230bbf2968a9a99ea9c5 /libavutil/hwcontext_vulkan.c
parent6bf9a6539e3db94ee88dd2a8e4816fadf10a4970 (diff)
hwcontext_vulkan: report device that's used
Not sure why this wasn't done before.
Diffstat (limited to 'libavutil/hwcontext_vulkan.c')
-rw-r--r--libavutil/hwcontext_vulkan.c7
1 files changed, 6 insertions, 1 deletions
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);