a/vk: Check for VK_KHR_timeline_semaphore

This commit is contained in:
Jakob Bornecrantz 2021-12-03 21:30:38 +00:00 committed by Ryan Pavlik
parent 0eca48ec2b
commit 5289b081c5
3 changed files with 10 additions and 0 deletions

View file

@ -221,6 +221,7 @@ def get_instance_cmds():
EXTENSIONS_TO_CHECK = [
"VK_GOOGLE_display_timing",
"VK_KHR_timeline_semaphore",
"VK_EXT_global_priority",
"VK_EXT_robustness2",
]

View file

@ -1235,6 +1235,7 @@ fill_in_has_extensions(struct vk_bundle *vk, const char **device_extensions, uin
// beginning of GENERATED extension code - do not modify - used by scripts
// Reset before filling out.
vk->has_GOOGLE_display_timing = false;
vk->has_KHR_timeline_semaphore = false;
vk->has_EXT_global_priority = false;
vk->has_EXT_robustness2 = false;
@ -1248,6 +1249,13 @@ fill_in_has_extensions(struct vk_bundle *vk, const char **device_extensions, uin
}
#endif // defined(VK_GOOGLE_display_timing)
#if defined(VK_KHR_timeline_semaphore)
if (strcmp(ext, VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME) == 0) {
vk->has_KHR_timeline_semaphore = true;
continue;
}
#endif // defined(VK_KHR_timeline_semaphore)
#if defined(VK_EXT_global_priority)
if (strcmp(ext, VK_EXT_GLOBAL_PRIORITY_EXTENSION_NAME) == 0) {
vk->has_EXT_global_priority = true;

View file

@ -58,6 +58,7 @@ struct vk_bundle
// beginning of GENERATED extension code - do not modify - used by scripts
bool has_GOOGLE_display_timing;
bool has_KHR_timeline_semaphore;
bool has_EXT_global_priority;
bool has_EXT_robustness2;
// end of GENERATED extension code - do not modify - used by scripts