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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user