mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 03:20:00 +01:00
avutil/hwcontext_vulkan: also re-query dprops in device_init()
This can be unset if using an externally provided device, as in this case
device_create() never gets called.
(cherry picked from commit 881224b213)
This commit is contained in:
@@ -1868,6 +1868,8 @@ static int vulkan_device_init(AVHWDeviceContext *ctx)
|
||||
p->props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
|
||||
p->props.pNext = &p->hprops;
|
||||
p->hprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT;
|
||||
p->hprops.pNext = &p->dprops;
|
||||
p->dprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES;
|
||||
|
||||
vk->GetPhysicalDeviceProperties2(hwctx->phys_dev, &p->props);
|
||||
av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n",
|
||||
|
||||
Reference in New Issue
Block a user