Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5be428f5
Commit
5be428f5
authored
Jul 16, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Remove vkEnumerateInstanceVersion() from Vulkan driver functions.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d1d9d549
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
23 deletions
+18
-23
make_vulkan
dlls/winevulkan/make_vulkan
+2
-2
vulkan.c
dlls/winevulkan/vulkan.c
+15
-1
vulkan.c
dlls/winex11.drv/vulkan.c
+0
-18
vulkan_driver.h
include/wine/vulkan_driver.h
+1
-2
No files found.
dlls/winevulkan/make_vulkan
View file @
5be428f5
...
...
@@ -130,7 +130,7 @@ CORE_EXTENSIONS = [
# Functions part of our winevulkan graphics driver interface.
# DRIVER_VERSION should be bumped on any change to driver interface
# in FUNCTION_OVERRIDES
DRIVER_VERSION
=
5
DRIVER_VERSION
=
6
# Table of functions for which we have a special implementation.
# These are regular device / instance functions for which we need
...
...
@@ -144,7 +144,7 @@ FUNCTION_OVERRIDES = {
# Global functions
"vkCreateInstance"
:
{
"dispatch"
:
False
,
"driver"
:
True
,
"thunk"
:
False
},
"vkEnumerateInstanceExtensionProperties"
:
{
"dispatch"
:
False
,
"driver"
:
True
,
"thunk"
:
False
},
"vkEnumerateInstanceVersion"
:
{
"dispatch"
:
False
,
"driver"
:
Tru
e
,
"thunk"
:
False
},
"vkEnumerateInstanceVersion"
:
{
"dispatch"
:
False
,
"driver"
:
Fals
e
,
"thunk"
:
False
},
"vkGetInstanceProcAddr"
:
{
"dispatch"
:
False
,
"driver"
:
True
,
"thunk"
:
False
},
# Instance functions
...
...
dlls/winevulkan/vulkan.c
View file @
5be428f5
...
...
@@ -58,6 +58,7 @@ static void *wine_vk_find_struct_(void *s, VkStructureType t)
static
void
*
wine_vk_get_global_proc_addr
(
const
char
*
name
);
static
const
struct
vulkan_funcs
*
vk_funcs
;
static
VkResult
(
*
p_vkEnumerateInstanceVersion
)(
uint32_t
*
version
);
static
void
wine_vk_physical_device_free
(
struct
VkPhysicalDevice_T
*
phys_dev
)
{
...
...
@@ -322,6 +323,8 @@ static BOOL wine_vk_init(void)
return
FALSE
;
}
p_vkEnumerateInstanceVersion
=
vk_funcs
->
p_vkGetInstanceProcAddr
(
NULL
,
"vkEnumerateInstanceVersion"
);
return
TRUE
;
}
...
...
@@ -849,7 +852,16 @@ VkResult WINAPI wine_vkEnumerateInstanceVersion(uint32_t *version)
TRACE
(
"%p
\n
"
,
version
);
res
=
vk_funcs
->
p_vkEnumerateInstanceVersion
(
version
);
if
(
p_vkEnumerateInstanceVersion
)
{
res
=
p_vkEnumerateInstanceVersion
(
version
);
}
else
{
*
version
=
VK_API_VERSION_1_0
;
res
=
VK_SUCCESS
;
}
TRACE
(
"API version %u.%u.%u.
\n
"
,
VK_VERSION_MAJOR
(
*
version
),
VK_VERSION_MINOR
(
*
version
),
VK_VERSION_PATCH
(
*
version
));
*
version
=
min
(
WINE_VK_VERSION
,
*
version
);
...
...
@@ -1117,6 +1129,8 @@ VkResult WINAPI wine_vkEnumeratePhysicalDeviceGroupsKHR(VkInstance instance,
BOOL
WINAPI
DllMain
(
HINSTANCE
hinst
,
DWORD
reason
,
void
*
reserved
)
{
TRACE
(
"%p, %u, %p
\n
"
,
hinst
,
reason
,
reserved
);
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
...
...
dlls/winex11.drv/vulkan.c
View file @
5be428f5
...
...
@@ -82,7 +82,6 @@ static void (*pvkDestroyInstance)(VkInstance, const VkAllocationCallbacks *);
static
void
(
*
pvkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
static
void
(
*
pvkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
static
VkResult
(
*
pvkEnumerateInstanceExtensionProperties
)(
const
char
*
,
uint32_t
*
,
VkExtensionProperties
*
);
static
VkResult
(
*
pvkEnumerateInstanceVersion
)(
uint32_t
*
);
static
VkResult
(
*
pvkGetDeviceGroupSurfacePresentModesKHR
)(
VkDevice
,
VkSurfaceKHR
,
VkDeviceGroupPresentModeFlagsKHR
*
);
static
void
*
(
*
pvkGetDeviceProcAddr
)(
VkDevice
,
const
char
*
);
static
void
*
(
*
pvkGetInstanceProcAddr
)(
VkInstance
,
const
char
*
);
...
...
@@ -132,7 +131,6 @@ static BOOL WINAPI wine_vk_init(INIT_ONCE *once, void *param, void **context)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceXlibPresentationSupportKHR
)
LOAD_FUNCPTR
(
vkGetSwapchainImagesKHR
)
LOAD_FUNCPTR
(
vkQueuePresentKHR
)
LOAD_OPTIONAL_FUNCPTR
(
vkEnumerateInstanceVersion
)
LOAD_OPTIONAL_FUNCPTR
(
vkGetDeviceGroupSurfacePresentModesKHR
)
LOAD_OPTIONAL_FUNCPTR
(
vkGetPhysicalDevicePresentRectanglesKHR
)
#undef LOAD_FUNCPTR
...
...
@@ -426,19 +424,6 @@ static VkResult X11DRV_vkEnumerateInstanceExtensionProperties(const char *layer_
return
res
;
}
static
VkResult
X11DRV_vkEnumerateInstanceVersion
(
uint32_t
*
version
)
{
TRACE
(
"%p
\n
"
,
version
);
if
(
!
pvkEnumerateInstanceVersion
)
{
*
version
=
VK_API_VERSION_1_0
;
return
VK_SUCCESS
;
}
return
pvkEnumerateInstanceVersion
(
version
);
}
static
VkResult
X11DRV_vkGetDeviceGroupSurfacePresentModesKHR
(
VkDevice
device
,
VkSurfaceKHR
surface
,
VkDeviceGroupPresentModeFlagsKHR
*
flags
)
{
...
...
@@ -555,7 +540,6 @@ static const struct vulkan_funcs vulkan_funcs =
X11DRV_vkDestroySurfaceKHR
,
X11DRV_vkDestroySwapchainKHR
,
X11DRV_vkEnumerateInstanceExtensionProperties
,
X11DRV_vkEnumerateInstanceVersion
,
X11DRV_vkGetDeviceGroupSurfacePresentModesKHR
,
X11DRV_vkGetDeviceProcAddr
,
X11DRV_vkGetInstanceProcAddr
,
...
...
@@ -612,8 +596,6 @@ static void *get_vulkan_driver_instance_proc_addr(const struct vulkan_funcs *vul
return
vulkan_funcs
->
p_vkCreateInstance
;
if
(
!
strcmp
(
name
,
"EnumerateInstanceExtensionProperties"
))
return
vulkan_funcs
->
p_vkEnumerateInstanceExtensionProperties
;
if
(
!
strcmp
(
name
,
"EnumerateInstanceVersion"
))
return
vulkan_funcs
->
p_vkEnumerateInstanceVersion
;
if
(
!
instance
)
return
NULL
;
...
...
include/wine/vulkan_driver.h
View file @
5be428f5
...
...
@@ -39,7 +39,7 @@
#define __WINE_VULKAN_DRIVER_H
/* Wine internal vulkan driver version, needs to be bumped upon vulkan_funcs changes. */
#define WINE_VULKAN_DRIVER_VERSION
5
#define WINE_VULKAN_DRIVER_VERSION
6
struct
vulkan_funcs
{
...
...
@@ -55,7 +55,6 @@ struct vulkan_funcs
void
(
*
p_vkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
void
(
*
p_vkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
VkResult
(
*
p_vkEnumerateInstanceExtensionProperties
)(
const
char
*
,
uint32_t
*
,
VkExtensionProperties
*
);
VkResult
(
*
p_vkEnumerateInstanceVersion
)(
uint32_t
*
);
VkResult
(
*
p_vkGetDeviceGroupSurfacePresentModesKHR
)(
VkDevice
,
VkSurfaceKHR
,
VkDeviceGroupPresentModeFlagsKHR
*
);
void
*
(
*
p_vkGetDeviceProcAddr
)(
VkDevice
,
const
char
*
);
void
*
(
*
p_vkGetInstanceProcAddr
)(
VkInstance
,
const
char
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment