Emil Velikov (@xexaxo) commented about dlls/win32u/d3dkmt.c:
PFN_vkCreateInstance p_vkCreateInstance; VkResult vr;
- if (!(vulkan_funcs = __wine_get_vulkan_driver( WINE_VULKAN_DRIVER_VERSION )))
- if (!vulkan_init()) { WARN( "Failed to open the Vulkan driver\n" ); return; }
- p_vkCreateInstance = vulkan_funcs->p_vkGetInstanceProcAddr( NULL, "vkCreateInstance" );
- p_vkCreateInstance = p_vkGetInstanceProcAddr( NULL, "vkCreateInstance" ); if ((vr = p_vkCreateInstance( &create_info, NULL, &d3dkmt_vk_instance ))) { WARN( "Failed to create a Vulkan instance, vr %d.\n", vr ); vulkan_funcs = NULL;
The vulkan_funcs seems to be no longer set/needed. The helper using it should also some polish.
Would this commit/allow us to drop the lazy loading introduced with commit 70cf97a59c0e48370ab0ff719a82aed015ad3195