aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2023-08-28 22:20:45 +0200
committerLynne <dev@lynne.ee>2023-08-28 22:29:33 +0200
commitf6cf3a40e479b5f1e98b11cf6c816baf34cb3bac (patch)
tree54f8f3d9c99b3411caac794954fd72460cb51c65
parent747871a42c0021fd82f0ca806b8419a29f627d7f (diff)
downloadffmpeg-f6cf3a40e479b5f1e98b11cf6c816baf34cb3bac.tar.gz
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.
-rw-r--r--libavutil/vulkan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index 8e36ba508c..00a7b5b801 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -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);