This can be unset if using an externally provided device, as in this case device_create() never gets called. (cherry picked from commit 881224b21324e5f0c43569928cf96f0e92a686e2)
Unified · Split
| @@ -1868,6 +1868,8 @@ static int vulkan_device_init(AVHWDeviceContext *ctx) · 1867 unmodified lines | |||
| 1868 | p->props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2; | 1868 | p->props.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2; |
| 1869 | p->props.pNext = &p->hprops; | 1869 | p->props.pNext = &p->hprops; |
| 1870 | p->hprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT; | 1870 | p->hprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT; |
| 1871 | p->hprops.pNext = &p->dprops; | ||
| 1872 | p->dprops.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES; | ||
| 1871 | 1873 | ||
| 1872 | vk->GetPhysicalDeviceProperties2(hwctx->phys_dev, &p->props); | 1874 | vk->GetPhysicalDeviceProperties2(hwctx->phys_dev, &p->props); |
| 1873 | av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n", | 1875 | av_log(ctx, AV_LOG_VERBOSE, "Using device: %s\n", |