You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-10-06 05:47:18 +02: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.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2;
|
||||||
p->props.pNext = &p->hprops;
|
p->props.pNext = &p->hprops;
|
||||||
p->hprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT;
|
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);
|
vk->GetPhysicalDeviceProperties2(hwctx->phys_dev, &p->props);
|
||||||
av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n",
|
av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n",
|
||||||
|
Reference in New Issue
Block a user