mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-15 12:00:33 +00: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:
parent
bc88c1d62e
commit
eeff85f15d
1 changed files with 2 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue