hwcontext_vulkan: report device that's used

Not sure why this wasn't done before.
pull/374/head
Lynne 3 years ago
parent 6bf9a6539e
commit f7f1613638
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 7
      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);

Loading…
Cancel
Save