remove MIR support since Vulkan is dropping support
authorJacob Lifshay <programmerjake@gmail.com>
Mon, 5 Nov 2018 02:47:27 +0000 (18:47 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Mon, 5 Nov 2018 02:47:27 +0000 (18:47 -0800)
vulkan-driver/src/swapchain.rs

index 4221a313735ccc1beb8b0fbd0f777c0e91c117b4..ece4a36c1d5e93cc66c66300e9eb9c7213e5992c 100644 (file)
@@ -12,7 +12,6 @@ use xcb_swapchain::XcbSurfaceImplementation;
 #[derive(Copy, Clone, Eq, PartialEq, Hash, Debug, Enum)]
 #[allow(non_camel_case_types)]
 pub enum SurfacePlatform {
-    VK_ICD_WSI_PLATFORM_MIR,
     VK_ICD_WSI_PLATFORM_WAYLAND,
     VK_ICD_WSI_PLATFORM_WIN32,
     VK_ICD_WSI_PLATFORM_XCB,
@@ -37,7 +36,6 @@ impl Error for UnknownSurfacePlatform {}
 impl SurfacePlatform {
     pub fn from(platform: api::VkIcdWsiPlatform) -> Result<Self, UnknownSurfacePlatform> {
         match platform {
-            api::VK_ICD_WSI_PLATFORM_MIR => Ok(SurfacePlatform::VK_ICD_WSI_PLATFORM_MIR),
             api::VK_ICD_WSI_PLATFORM_WAYLAND => Ok(SurfacePlatform::VK_ICD_WSI_PLATFORM_WAYLAND),
             api::VK_ICD_WSI_PLATFORM_WIN32 => Ok(SurfacePlatform::VK_ICD_WSI_PLATFORM_WIN32),
             api::VK_ICD_WSI_PLATFORM_XCB => Ok(SurfacePlatform::VK_ICD_WSI_PLATFORM_XCB),
@@ -63,7 +61,6 @@ impl SurfacePlatform {
 impl From<SurfacePlatform> for api::VkIcdWsiPlatform {
     fn from(platform: SurfacePlatform) -> api::VkIcdWsiPlatform {
         match platform {
-            SurfacePlatform::VK_ICD_WSI_PLATFORM_MIR => api::VK_ICD_WSI_PLATFORM_MIR,
             SurfacePlatform::VK_ICD_WSI_PLATFORM_WAYLAND => api::VK_ICD_WSI_PLATFORM_WAYLAND,
             SurfacePlatform::VK_ICD_WSI_PLATFORM_WIN32 => api::VK_ICD_WSI_PLATFORM_WIN32,
             SurfacePlatform::VK_ICD_WSI_PLATFORM_XCB => api::VK_ICD_WSI_PLATFORM_XCB,