mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 18:46:18 +00:00
a/vk: Sort checked extensions
This commit is contained in:
parent
759162ebeb
commit
308aeb8e21
|
@ -246,16 +246,18 @@ def get_instance_cmds():
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
# Sorted KHR, EXT, Vendor, interally alphabetically
|
||||||
INSTANCE_EXTENSIONS_TO_CHECK = [
|
INSTANCE_EXTENSIONS_TO_CHECK = [
|
||||||
"VK_EXT_display_surface_counter",
|
"VK_EXT_display_surface_counter",
|
||||||
]
|
]
|
||||||
|
# Sorted KHR, EXT, Vendor, interally alphabetically
|
||||||
DEVICE_EXTENSIONS_TO_CHECK = [
|
DEVICE_EXTENSIONS_TO_CHECK = [
|
||||||
"VK_KHR_timeline_semaphore",
|
"VK_KHR_timeline_semaphore",
|
||||||
"VK_EXT_calibrated_timestamps",
|
"VK_EXT_calibrated_timestamps",
|
||||||
|
"VK_EXT_display_control",
|
||||||
"VK_EXT_global_priority",
|
"VK_EXT_global_priority",
|
||||||
"VK_EXT_robustness2",
|
"VK_EXT_robustness2",
|
||||||
"VK_GOOGLE_display_timing",
|
"VK_GOOGLE_display_timing",
|
||||||
"VK_EXT_display_control",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
ROOT = Path(__file__).resolve().parent.parent
|
ROOT = Path(__file__).resolve().parent.parent
|
||||||
|
|
|
@ -518,10 +518,10 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||||
// Reset before filling out.
|
// Reset before filling out.
|
||||||
vk->has_KHR_timeline_semaphore = false;
|
vk->has_KHR_timeline_semaphore = false;
|
||||||
vk->has_EXT_calibrated_timestamps = false;
|
vk->has_EXT_calibrated_timestamps = false;
|
||||||
|
vk->has_EXT_display_control = false;
|
||||||
vk->has_EXT_global_priority = false;
|
vk->has_EXT_global_priority = false;
|
||||||
vk->has_EXT_robustness2 = false;
|
vk->has_EXT_robustness2 = false;
|
||||||
vk->has_GOOGLE_display_timing = false;
|
vk->has_GOOGLE_display_timing = false;
|
||||||
vk->has_EXT_display_control = false;
|
|
||||||
|
|
||||||
const char *const *exts = u_string_list_get_data(ext_list);
|
const char *const *exts = u_string_list_get_data(ext_list);
|
||||||
uint32_t ext_count = u_string_list_get_size(ext_list);
|
uint32_t ext_count = u_string_list_get_size(ext_list);
|
||||||
|
@ -543,6 +543,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||||
}
|
}
|
||||||
#endif // defined(VK_EXT_calibrated_timestamps)
|
#endif // defined(VK_EXT_calibrated_timestamps)
|
||||||
|
|
||||||
|
#if defined(VK_EXT_display_control)
|
||||||
|
if (strcmp(ext, VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME) == 0) {
|
||||||
|
vk->has_EXT_display_control = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif // defined(VK_EXT_display_control)
|
||||||
|
|
||||||
#if defined(VK_EXT_global_priority)
|
#if defined(VK_EXT_global_priority)
|
||||||
if (strcmp(ext, VK_EXT_GLOBAL_PRIORITY_EXTENSION_NAME) == 0) {
|
if (strcmp(ext, VK_EXT_GLOBAL_PRIORITY_EXTENSION_NAME) == 0) {
|
||||||
vk->has_EXT_global_priority = true;
|
vk->has_EXT_global_priority = true;
|
||||||
|
@ -563,13 +570,6 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
#endif // defined(VK_GOOGLE_display_timing)
|
#endif // defined(VK_GOOGLE_display_timing)
|
||||||
|
|
||||||
#if defined(VK_EXT_display_control)
|
|
||||||
if (strcmp(ext, VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME) == 0) {
|
|
||||||
vk->has_EXT_display_control = true;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
#endif // defined(VK_EXT_display_control)
|
|
||||||
}
|
}
|
||||||
// end of GENERATED device extension code - do not modify - used by scripts
|
// end of GENERATED device extension code - do not modify - used by scripts
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,10 +87,10 @@ struct vk_bundle
|
||||||
// beginning of GENERATED device extension code - do not modify - used by scripts
|
// beginning of GENERATED device extension code - do not modify - used by scripts
|
||||||
bool has_KHR_timeline_semaphore;
|
bool has_KHR_timeline_semaphore;
|
||||||
bool has_EXT_calibrated_timestamps;
|
bool has_EXT_calibrated_timestamps;
|
||||||
|
bool has_EXT_display_control;
|
||||||
bool has_EXT_global_priority;
|
bool has_EXT_global_priority;
|
||||||
bool has_EXT_robustness2;
|
bool has_EXT_robustness2;
|
||||||
bool has_GOOGLE_display_timing;
|
bool has_GOOGLE_display_timing;
|
||||||
bool has_EXT_display_control;
|
|
||||||
// end of GENERATED device extension code - do not modify - used by scripts
|
// end of GENERATED device extension code - do not modify - used by scripts
|
||||||
|
|
||||||
struct
|
struct
|
||||||
|
|
Loading…
Reference in a new issue