zink/codegen: init properties struct fully for double-loaded extensions

Fixes: 4d1768aec5
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35608>
This commit is contained in:
Hoe Hao Cheng 2025-06-18 22:59:44 +08:00 committed by Marge Bot
parent 1fb0e76233
commit 412d97e667

View file

@ -715,6 +715,7 @@ zink_get_physical_device_info(struct zink_screen *screen)
%for ext in extensions:
%if ext.needs_double_load:
if (screen->info.have_${ext.name_with_vendor()}) {
screen->info.${ext.field("props")}.sType = ${ext.stype("PROPERTIES")};
screen->info.${ext.field("props")}.pNext = second_load_props.pNext;
second_load_props.pNext = &screen->info.${ext.field("props")};
%for field in registry.get_registry_entry(ext.name).properties_fields: