1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winewayland: Remove now unnecessary vulkan function name mapping.

This commit is contained in:
Rémi Bernon 2024-02-23 18:55:42 +01:00 committed by Alexandre Julliard
parent 684d51cebb
commit 6f122f48d3

View file

@ -189,16 +189,6 @@ static VkResult wine_vk_instance_convert_create_info(const VkInstanceCreateInfo
return VK_SUCCESS;
}
static const char *wine_vk_host_fn_name(const char *name)
{
if (!strcmp(name, "vkCreateWin32SurfaceKHR"))
return "vkCreateWaylandSurfaceKHR";
if (!strcmp(name, "vkGetPhysicalDeviceWin32PresentationSupportKHR"))
return "vkGetPhysicalDeviceWaylandPresentationSupportKHR";
return name;
}
static void vk_result_update_out_of_date(VkResult *res)
{
/* If the current result is less severe than out_of_date, which for
@ -504,11 +494,6 @@ static void *wayland_vkGetDeviceProcAddr(VkDevice device, const char *name)
TRACE("%p, %s\n", device, debugstr_a(name));
/* Do not return the driver function if the corresponding host function
* is not available. */
if (!pvkGetDeviceProcAddr(device, wine_vk_host_fn_name(name)))
return NULL;
if ((proc_addr = get_vulkan_driver_device_proc_addr(&vulkan_funcs, name)))
return proc_addr;
@ -521,11 +506,6 @@ static void *wayland_vkGetInstanceProcAddr(VkInstance instance, const char *name
TRACE("%p, %s\n", instance, debugstr_a(name));
/* Do not return the driver function if the corresponding host function
* is not available. */
if (!pvkGetInstanceProcAddr(instance, wine_vk_host_fn_name(name)))
return NULL;
if ((proc_addr = get_vulkan_driver_instance_proc_addr(&vulkan_funcs, instance, name)))
return proc_addr;