zink: add missing guards around have_{ext}

Signed-off-by: Eric Engestrom <eric@igalia.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17466>
This commit is contained in:
Eric Engestrom 2022-07-11 23:33:37 +01:00 committed by Marge Bot
parent 672df4d0fe
commit f7f74a984b

View file

@ -578,6 +578,7 @@ zink_verify_device_extensions(struct zink_screen *screen)
{
%for ext in extensions:
%if registry.in_registry(ext.name):
<%helpers:guard ext="${ext}">
if (screen->info.have_${ext.name_with_vendor()}) {
%for cmd in registry.get_registry_entry(ext.name).device_commands:
%if cmd.find("win32"):
@ -595,6 +596,7 @@ zink_verify_device_extensions(struct zink_screen *screen)
%endif
%endfor
}
</%helpers:guard>
%endif
%endfor
}