mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
zink: Add VKAPI_PTR specifier to generated stub functions.
Same as 8d210ae232 but for when NDEBUG
isn't defined.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29863>
This commit is contained in:
parent
6466a977e4
commit
f9a15b37ef
2 changed files with 5 additions and 5 deletions
|
|
@ -438,7 +438,7 @@ zink_verify_device_extensions(struct zink_screen *screen);
|
|||
%for ext in extensions:
|
||||
%if registry.in_registry(ext.name):
|
||||
%for cmd in registry.get_registry_entry(ext.name).device_commands:
|
||||
void zink_stub_${cmd.lstrip("vk")}(void);
|
||||
void VKAPI_PTR zink_stub_${cmd.lstrip("vk")}(void);
|
||||
%endfor
|
||||
%endif
|
||||
%endfor
|
||||
|
|
@ -745,7 +745,7 @@ zink_verify_device_extensions(struct zink_screen *screen)
|
|||
%else:
|
||||
<% generated_funcs.add(cmd) %>
|
||||
%endif
|
||||
void
|
||||
void VKAPI_PTR
|
||||
zink_stub_${cmd.lstrip("vk")}()
|
||||
{
|
||||
mesa_loge("ZINK: ${cmd} is not loaded properly!");
|
||||
|
|
|
|||
|
|
@ -111,10 +111,10 @@ zink_verify_instance_extensions(struct zink_screen *screen);
|
|||
%for ext in extensions:
|
||||
%if registry.in_registry(ext.name):
|
||||
%for cmd in registry.get_registry_entry(ext.name).instance_commands:
|
||||
void zink_stub_${cmd.lstrip("vk")}(void);
|
||||
void VKAPI_PTR zink_stub_${cmd.lstrip("vk")}(void);
|
||||
%endfor
|
||||
%for cmd in registry.get_registry_entry(ext.name).pdevice_commands:
|
||||
void zink_stub_${cmd.lstrip("vk")}(void);
|
||||
void VKAPI_PTR zink_stub_${cmd.lstrip("vk")}(void);
|
||||
%endfor
|
||||
%endif
|
||||
%endfor
|
||||
|
|
@ -329,7 +329,7 @@ zink_verify_instance_extensions(struct zink_screen *screen)
|
|||
%if ext.platform_guard:
|
||||
#ifdef ${ext.platform_guard}
|
||||
%endif
|
||||
void
|
||||
void VKAPI_PTR
|
||||
zink_stub_${cmd.lstrip("vk")}()
|
||||
{
|
||||
mesa_loge("ZINK: ${cmd} is not loaded properly!");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue