Module: wine
Branch: master
Commit: 19eba8d99104eb0f4f3f4abe10ccb4e24999dcdc
URL:
https://gitlab.winehq.org/wine/wine/-/commit/19eba8d99104eb0f4f3f4abe10ccb4…
Author: Rémi Bernon <rbernon(a)codeweavers.com>
Date: Sat Nov 25 01:44:49 2023 +0100
winewayland: Remove now unnecessary VK_ERROR_SURFACE_LOST_KHR checks.
---
dlls/winewayland.drv/vulkan.c | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/dlls/winewayland.drv/vulkan.c b/dlls/winewayland.drv/vulkan.c
index 294272a9788..51ddf42fc38 100644
--- a/dlls/winewayland.drv/vulkan.c
+++ b/dlls/winewayland.drv/vulkan.c
@@ -555,9 +555,6 @@ static VkResult
wayland_vkGetDeviceGroupSurfacePresentModesKHR(VkDevice device,
TRACE("%p, 0x%s, %p\n", device, wine_dbgstr_longlong(surface), flags);
- if (!wine_vk_surface_is_valid(wine_vk_surface))
- return VK_ERROR_SURFACE_LOST_KHR;
-
return pvkGetDeviceGroupSurfacePresentModesKHR(device,
wine_vk_surface->host_surface, flags);
}
@@ -675,9 +672,6 @@ static VkResult
wayland_vkGetPhysicalDeviceSurfaceFormats2KHR(VkPhysicalDevice p
TRACE("%p, %p, %p, %p\n", phys_dev, surface_info, count, formats);
- if (!wine_vk_surface_is_valid(wine_vk_surface))
- return VK_ERROR_SURFACE_LOST_KHR;
-
surface_info_host = *surface_info;
surface_info_host.surface = wine_vk_surface->host_surface;
@@ -724,9 +718,6 @@ static VkResult
wayland_vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice ph
TRACE("%p, 0x%s, %p, %p\n", phys_dev, wine_dbgstr_longlong(surface), count,
formats);
- if (!wine_vk_surface_is_valid(wine_vk_surface))
- return VK_ERROR_SURFACE_LOST_KHR;
-
return pvkGetPhysicalDeviceSurfaceFormatsKHR(phys_dev,
wine_vk_surface->host_surface,
count, formats);
}
@@ -740,9 +731,6 @@ static VkResult
wayland_vkGetPhysicalDeviceSurfacePresentModesKHR(VkPhysicalDevi
TRACE("%p, 0x%s, %p, %p\n", phys_dev, wine_dbgstr_longlong(surface), count,
modes);
- if (!wine_vk_surface_is_valid(wine_vk_surface))
- return VK_ERROR_SURFACE_LOST_KHR;
-
return pvkGetPhysicalDeviceSurfacePresentModesKHR(phys_dev,
wine_vk_surface->host_surface,
count, modes);
}
@@ -756,9 +744,6 @@ static VkResult
wayland_vkGetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice ph
TRACE("%p, %u, 0x%s, %p\n", phys_dev, index, wine_dbgstr_longlong(surface),
supported);
- if (!wine_vk_surface_is_valid(wine_vk_surface))
- return VK_ERROR_SURFACE_LOST_KHR;
-
return pvkGetPhysicalDeviceSurfaceSupportKHR(phys_dev, index,
wine_vk_surface->host_surface,
supported);
}