From a0f1f5149d91d9ea460c19a7bbd281a1c604c8e7 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 22 Jul 2020 14:42:36 +0200 Subject: [PATCH] Fix enum order for backwards compatibility The new enum member introduced in 2a164e968 broke ABI with previous versions of vk_icd.h, resulting in a segfault on latest mesa (which does not yet have this commit in their vendored copy of vk_icd.h, thus breaking the order of enum members). --- include/vulkan/vk_icd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/vulkan/vk_icd.h b/include/vulkan/vk_icd.h index b5185a3..00858a4 100644 --- a/include/vulkan/vk_icd.h +++ b/include/vulkan/vk_icd.h @@ -85,13 +85,13 @@ typedef enum { VK_ICD_WSI_PLATFORM_WIN32, VK_ICD_WSI_PLATFORM_XCB, VK_ICD_WSI_PLATFORM_XLIB, - VK_ICD_WSI_PLATFORM_DIRECTFB, VK_ICD_WSI_PLATFORM_ANDROID, VK_ICD_WSI_PLATFORM_MACOS, VK_ICD_WSI_PLATFORM_IOS, VK_ICD_WSI_PLATFORM_DISPLAY, VK_ICD_WSI_PLATFORM_HEADLESS, VK_ICD_WSI_PLATFORM_METAL, + VK_ICD_WSI_PLATFORM_DIRECTFB, } VkIcdWsiPlatform; typedef struct {