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 <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29986>
This commit is contained in:
committed by
Marge Bot
parent
1a3b3b845b
commit
c8c131fba8
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user