1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

vulkan: check for extension rather than function pointer

The loader ensures only that functions with tagged supported extensions
exist, rather than ensuring only those with supported extensions are
loaded.
As the init function uses Vulkan functions, whose loading requires them
to have the extension flags set, the extension flags are guaranteed
to also exist at this point.
This commit is contained in:
Lynne 2023-08-28 22:20:45 +02:00
parent 747871a42c
commit f6cf3a40e4
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464

View File

@ -165,7 +165,7 @@ int ff_vk_load_props(FFVulkanContext *s)
vk->GetPhysicalDeviceQueueFamilyProperties2(s->hwctx->phys_dev, &s->tot_nb_qfs, s->qf_props);
if (vk->GetPhysicalDeviceCooperativeMatrixPropertiesKHR) {
if (s->extensions & FF_VK_EXT_COOP_MATRIX) {
vk->GetPhysicalDeviceCooperativeMatrixPropertiesKHR(s->hwctx->phys_dev,
&s->coop_mat_props_nb, NULL);