Commit 89e7dc3a authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wined3d: Don't use vulkan_driver.h.

parent c03409e9
......@@ -18,8 +18,6 @@
#include "wined3d_private.h"
#include "wine/vulkan_driver.h"
WINE_DEFAULT_DEBUG_CHANNEL(d3d);
static const struct wined3d_state_entry_template misc_state_template_vk[] =
......@@ -214,7 +212,6 @@ static HRESULT hresult_from_vk_result(VkResult vr)
}
}
#ifdef USE_WIN32_VULKAN
static BOOL wined3d_load_vulkan(struct wined3d_vk_info *vk_info)
{
struct vulkan_ops *vk_ops = &vk_info->vk_ops;
......@@ -244,23 +241,6 @@ static void wined3d_unload_vulkan(struct wined3d_vk_info *vk_info)
vk_info->vulkan_lib = NULL;
}
}
#else
static BOOL wined3d_load_vulkan(struct wined3d_vk_info *vk_info)
{
struct vulkan_ops *vk_ops = &vk_info->vk_ops;
const struct vulkan_funcs *vk_funcs;
vk_funcs = __wine_get_vulkan_driver(WINE_VULKAN_DRIVER_VERSION);
if (!vk_funcs)
return FALSE;
vk_ops->vkGetInstanceProcAddr = (void *)vk_funcs->p_vkGetInstanceProcAddr;
return TRUE;
}
static void wined3d_unload_vulkan(struct wined3d_vk_info *vk_info) {}
#endif
static void adapter_vk_destroy(struct wined3d_adapter *adapter)
{
......
......@@ -25,7 +25,6 @@
#ifndef __WINE_WINED3D_PRIVATE_H
#define __WINE_WINED3D_PRIVATE_H
#define USE_WIN32_VULKAN
#define USE_WIN32_OPENGL
#ifdef USE_WIN32_OPENGL
......
......@@ -20,9 +20,6 @@
#define __WINE_WINED3D_VK_H
#define VK_NO_PROTOTYPES
#ifndef USE_WIN32_VULKAN
#define WINE_VK_HOST
#endif
#include "wine/vulkan.h"
#define VK_INSTANCE_FUNCS() \
......@@ -225,9 +222,7 @@ struct wined3d_vk_info
unsigned int api_version;
BOOL supported[WINED3D_VK_EXT_COUNT];
#ifdef USE_WIN32_VULKAN
HMODULE vulkan_lib;
#endif
};
#define VK_CALL(f) (vk_info->vk_ops.f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment