[FFmpeg-cvslog] hwcontext_vulkan: report device that's used

Lynne git at videolan.org
Fri Nov 12 06:52:32 EET 2021


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Sun Nov  7 08:18:54 2021 +0100| [f7f16136388b3f3ef17b0bdacf4e9eb3e7900aca] | committer: Lynne

hwcontext_vulkan: report device that's used

Not sure why this wasn't done before.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7f16136388b3f3ef17b0bdacf4e9eb3e7900aca
---

 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);



More information about the ffmpeg-cvslog mailing list