1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

hwcontext_vulkan: report device that's used

Not sure why this wasn't done before.
This commit is contained in:
Lynne
2021-11-07 08:18:54 +01:00
parent 6bf9a6539e
commit f7f1613638

View File

@@ -885,8 +885,13 @@ static int find_device(AVHWDeviceContext *ctx, VulkanDeviceSelection *select)
} }
end: 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]; hwctx->phys_dev = devices[choice];
}
av_free(devices); av_free(devices);
av_free(prop); av_free(prop);