mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/vk: Check for VK_KHR_timeline_semaphore
This commit is contained in:
parent
0eca48ec2b
commit
5289b081c5
|
@ -221,6 +221,7 @@ def get_instance_cmds():
|
||||||
|
|
||||||
EXTENSIONS_TO_CHECK = [
|
EXTENSIONS_TO_CHECK = [
|
||||||
"VK_GOOGLE_display_timing",
|
"VK_GOOGLE_display_timing",
|
||||||
|
"VK_KHR_timeline_semaphore",
|
||||||
"VK_EXT_global_priority",
|
"VK_EXT_global_priority",
|
||||||
"VK_EXT_robustness2",
|
"VK_EXT_robustness2",
|
||||||
]
|
]
|
||||||
|
|
|
@ -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
|
// beginning of GENERATED extension code - do not modify - used by scripts
|
||||||
// Reset before filling out.
|
// Reset before filling out.
|
||||||
vk->has_GOOGLE_display_timing = false;
|
vk->has_GOOGLE_display_timing = false;
|
||||||
|
vk->has_KHR_timeline_semaphore = false;
|
||||||
vk->has_EXT_global_priority = false;
|
vk->has_EXT_global_priority = false;
|
||||||
vk->has_EXT_robustness2 = 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)
|
#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 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;
|
||||||
|
|
|
@ -58,6 +58,7 @@ struct vk_bundle
|
||||||
|
|
||||||
// beginning of GENERATED extension code - do not modify - used by scripts
|
// beginning of GENERATED extension code - do not modify - used by scripts
|
||||||
bool has_GOOGLE_display_timing;
|
bool has_GOOGLE_display_timing;
|
||||||
|
bool has_KHR_timeline_semaphore;
|
||||||
bool has_EXT_global_priority;
|
bool has_EXT_global_priority;
|
||||||
bool has_EXT_robustness2;
|
bool has_EXT_robustness2;
|
||||||
// end of GENERATED extension code - do not modify - used by scripts
|
// end of GENERATED extension code - do not modify - used by scripts
|
||||||
|
|
Loading…
Reference in a new issue