From c8c131fba8736cbc6c5945f717567dd5e94f2e79 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Mon, 1 Jul 2024 21:47:36 +0900 Subject: [PATCH] vk_entrypoints_gen: Add missing ATTR_WEAK for instance and physdev entrypoints I'm not sure why Clang didn't warn for this case, but since we are declaring in both .h and .c we should match both. Reviewed-by: Mike Blumenkrantz Part-of: --- src/vulkan/util/vk_entrypoints_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/util/vk_entrypoints_gen.py b/src/vulkan/util/vk_entrypoints_gen.py index bbfb4e80158..74502149104 100644 --- a/src/vulkan/util/vk_entrypoints_gen.py +++ b/src/vulkan/util/vk_entrypoints_gen.py @@ -78,7 +78,7 @@ extern const struct vk_device_entrypoint_table ${tmpl_prefix}_device_entrypoints #ifdef ${e.guard} % endif % for p in physical_device_prefixes: - VKAPI_ATTR ${e.return_type} VKAPI_CALL ${p}_${e.name}(${e.decl_params()}); + VKAPI_ATTR ${e.return_type} VKAPI_CALL ${p}_${e.name}(${e.decl_params()}) ATTR_WEAK; % endfor % if e.guard is not None: #endif // ${e.guard} @@ -90,7 +90,7 @@ extern const struct vk_device_entrypoint_table ${tmpl_prefix}_device_entrypoints #ifdef ${e.guard} % endif % for p in physical_device_prefixes: - VKAPI_ATTR ${e.return_type} VKAPI_CALL ${p}_${e.name}(${e.decl_params()}); + VKAPI_ATTR ${e.return_type} VKAPI_CALL ${p}_${e.name}(${e.decl_params()}) ATTR_WEAK; % endfor % if e.guard is not None: #endif // ${e.guard}