hwcontext_vulkan: fix 85c0364b70

The issue is that by moving the mprops loading later, we inadvertently
broke some earlier dependencies.
This commit is contained in:
Lynne 2025-06-24 16:41:48 +09:00
parent 88fee7046a
commit 60fc0288ae
No known key found for this signature in database
GPG key ID: A2FEA5F03F034464

View file

@ -1720,6 +1720,9 @@ static int vulkan_device_create_internal(AVHWDeviceContext *ctx,
goto end;
}
/* Get supported memory types */
vk->GetPhysicalDeviceMemoryProperties(hwctx->phys_dev, &p->mprops);
/* Get all supported features for the physical device */
device_features_init(ctx, &supported_feats);
vk->GetPhysicalDeviceFeatures2(hwctx->phys_dev, &supported_feats.device);