vulkan_entrypoints_gen: For Windows ARM64EC, prefix symbols with '#'

Acked-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17267>
This commit is contained in:
Jesse Natalie 2022-06-27 11:20:25 -07:00 committed by Marge Bot
parent 6c4cc0abc6
commit d4f7f21fa5
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ TEMPLATE_C = Template(COPYRIGHT + """
% endfor
#else
#pragma comment(linker, "/alternatename:${p}_${e.name}=vk_entrypoint_stub")
#if defined(_M_ARM64EC)
#pragma comment(linker, "/alternatename:#${p}_${e.name}=#vk_entrypoint_stub")
#endif
#endif
#else
VKAPI_ATTR ${e.return_type} VKAPI_CALL ${p}_${e.name}(${e.decl_params()}) __attribute__ ((weak));