mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 18:20:30 +01:00
zink: apply EXT-suffixed functions to their unsuffixed counterpart
...if they are promoted to core verbatim. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35389>
This commit is contained in:
parent
66f0a99c73
commit
a5e114ce97
1 changed files with 11 additions and 0 deletions
|
|
@ -777,6 +777,17 @@ zink_verify_device_extensions(struct zink_screen *screen)
|
|||
if (!screen->vk.${cmd.name()}) {
|
||||
screen->vk.${cmd.name()} = (PFN_${cmd.full_name})screen->vk.${cmd.name().replace("EXT", "KHR")}; /* promoted from EXT */
|
||||
}
|
||||
%endif
|
||||
%if ext.core_since:
|
||||
%if not cmd.not_promoted:
|
||||
if (!screen->vk.${cmd.name().rstrip(ext.vendor())}) {
|
||||
screen->vk.${cmd.name().rstrip(ext.vendor())} = screen->vk.${cmd.name()}; /* promoted to core */
|
||||
}
|
||||
%else:
|
||||
|
||||
/* ${cmd.full_name} is not promoted */
|
||||
|
||||
%endif
|
||||
%endif
|
||||
if (!screen->vk.${cmd.name()}) {
|
||||
#ifndef NDEBUG
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue