a/vk: Add check for VK_KHR_image_format_list device extension

This commit is contained in:
Jakob Bornecrantz 2022-05-28 23:59:47 +01:00
parent 4150028cb1
commit 2b29e925ea
3 changed files with 10 additions and 0 deletions

View file

@ -254,6 +254,7 @@ INSTANCE_EXTENSIONS_TO_CHECK = [
DEVICE_EXTENSIONS_TO_CHECK = [
"VK_KHR_external_fence_fd",
"VK_KHR_external_semaphore_fd",
"VK_KHR_image_format_list",
"VK_KHR_timeline_semaphore",
"VK_EXT_calibrated_timestamps",
"VK_EXT_display_control",

View file

@ -534,6 +534,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
// Reset before filling out.
vk->has_KHR_external_fence_fd = false;
vk->has_KHR_external_semaphore_fd = false;
vk->has_KHR_image_format_list = false;
vk->has_KHR_timeline_semaphore = false;
vk->has_EXT_calibrated_timestamps = false;
vk->has_EXT_display_control = false;
@ -561,6 +562,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
}
#endif // defined(VK_KHR_external_semaphore_fd)
#if defined(VK_KHR_image_format_list)
if (strcmp(ext, VK_KHR_IMAGE_FORMAT_LIST_EXTENSION_NAME) == 0) {
vk->has_KHR_image_format_list = true;
continue;
}
#endif // defined(VK_KHR_image_format_list)
#if defined(VK_KHR_timeline_semaphore)
if (strcmp(ext, VK_KHR_TIMELINE_SEMAPHORE_EXTENSION_NAME) == 0) {
vk->has_KHR_timeline_semaphore = true;

View file

@ -89,6 +89,7 @@ struct vk_bundle
// beginning of GENERATED device extension code - do not modify - used by scripts
bool has_KHR_external_fence_fd;
bool has_KHR_external_semaphore_fd;
bool has_KHR_image_format_list;
bool has_KHR_timeline_semaphore;
bool has_EXT_calibrated_timestamps;
bool has_EXT_display_control;