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
77f4d220
Commit
77f4d220
authored
Feb 12, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Remove unnecessary X11DRV_get_vk_* helpers.
parent
6f122f48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
vulkan.c
dlls/winex11.drv/vulkan.c
+3
-14
No files found.
dlls/winex11.drv/vulkan.c
View file @
77f4d220
...
@@ -87,8 +87,7 @@ static VkBool32 (*pvkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevi
...
@@ -87,8 +87,7 @@ static VkBool32 (*pvkGetPhysicalDeviceXlibPresentationSupportKHR)(VkPhysicalDevi
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
VkResult
(
*
pvkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
static
VkResult
(
*
pvkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
static
void
*
X11DRV_get_vk_device_proc_addr
(
const
char
*
name
);
static
const
struct
vulkan_funcs
vulkan_funcs
;
static
void
*
X11DRV_get_vk_instance_proc_addr
(
VkInstance
instance
,
const
char
*
name
);
static
inline
struct
wine_vk_surface
*
surface_from_handle
(
VkSurfaceKHR
handle
)
static
inline
struct
wine_vk_surface
*
surface_from_handle
(
VkSurfaceKHR
handle
)
{
{
...
@@ -439,7 +438,7 @@ static void *X11DRV_vkGetDeviceProcAddr(VkDevice device, const char *name)
...
@@ -439,7 +438,7 @@ static void *X11DRV_vkGetDeviceProcAddr(VkDevice device, const char *name)
TRACE
(
"%p, %s
\n
"
,
device
,
debugstr_a
(
name
));
TRACE
(
"%p, %s
\n
"
,
device
,
debugstr_a
(
name
));
if
((
proc_addr
=
X11DRV_get_vk_device_proc_addr
(
name
)))
if
((
proc_addr
=
get_vulkan_driver_device_proc_addr
(
&
vulkan_funcs
,
name
)))
return
proc_addr
;
return
proc_addr
;
return
pvkGetDeviceProcAddr
(
device
,
name
);
return
pvkGetDeviceProcAddr
(
device
,
name
);
...
@@ -451,7 +450,7 @@ static void *X11DRV_vkGetInstanceProcAddr(VkInstance instance, const char *name)
...
@@ -451,7 +450,7 @@ static void *X11DRV_vkGetInstanceProcAddr(VkInstance instance, const char *name)
TRACE
(
"%p, %s
\n
"
,
instance
,
debugstr_a
(
name
));
TRACE
(
"%p, %s
\n
"
,
instance
,
debugstr_a
(
name
));
if
((
proc_addr
=
X11DRV_get_vk_instance_proc_addr
(
instance
,
name
)))
if
((
proc_addr
=
get_vulkan_driver_instance_proc_addr
(
&
vulkan_funcs
,
instance
,
name
)))
return
proc_addr
;
return
proc_addr
;
return
pvkGetInstanceProcAddr
(
instance
,
name
);
return
pvkGetInstanceProcAddr
(
instance
,
name
);
...
@@ -532,16 +531,6 @@ static const struct vulkan_funcs vulkan_funcs =
...
@@ -532,16 +531,6 @@ static const struct vulkan_funcs vulkan_funcs =
X11DRV_wine_get_host_surface
,
X11DRV_wine_get_host_surface
,
};
};
static
void
*
X11DRV_get_vk_device_proc_addr
(
const
char
*
name
)
{
return
get_vulkan_driver_device_proc_addr
(
&
vulkan_funcs
,
name
);
}
static
void
*
X11DRV_get_vk_instance_proc_addr
(
VkInstance
instance
,
const
char
*
name
)
{
return
get_vulkan_driver_instance_proc_addr
(
&
vulkan_funcs
,
instance
,
name
);
}
const
struct
vulkan_funcs
*
get_vulkan_driver
(
UINT
version
)
const
struct
vulkan_funcs
*
get_vulkan_driver
(
UINT
version
)
{
{
static
pthread_once_t
init_once
=
PTHREAD_ONCE_INIT
;
static
pthread_once_t
init_once
=
PTHREAD_ONCE_INIT
;
...
...
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