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
03f5fcd9
Commit
03f5fcd9
authored
Sep 20, 2021
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement vkGetPhysicalDeviceWin32PresentationSupportKHR.
This is a simple passthrough implementation to the corresponding Vulkan Wayland extension.
parent
c35be65d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
vulkan.c
dlls/winewayland.drv/vulkan.c
+14
-0
No files found.
dlls/winewayland.drv/vulkan.c
View file @
03f5fcd9
...
...
@@ -66,6 +66,7 @@ static VkResult (*pvkGetPhysicalDeviceSurfaceFormats2KHR)(VkPhysicalDevice, cons
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormatsKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkSurfaceFormatKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfacePresentModesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkPresentModeKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
VkSurfaceKHR
,
VkBool32
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceWaylandPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
struct
wl_display
*
);
static
void
*
vulkan_handle
;
static
const
struct
vulkan_funcs
vulkan_funcs
;
...
...
@@ -166,6 +167,8 @@ static const char *wine_vk_native_fn_name(const char *name)
{
if
(
!
strcmp
(
name
,
"vkCreateWin32SurfaceKHR"
))
return
"vkCreateWaylandSurfaceKHR"
;
if
(
!
strcmp
(
name
,
"vkGetPhysicalDeviceWin32PresentationSupportKHR"
))
return
"vkGetPhysicalDeviceWaylandPresentationSupportKHR"
;
return
name
;
}
...
...
@@ -612,6 +615,15 @@ static VkResult wayland_vkGetPhysicalDeviceSurfaceSupportKHR(VkPhysicalDevice ph
supported
);
}
static
VkBool32
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
TRACE
(
"%p %u
\n
"
,
phys_dev
,
index
);
return
pvkGetPhysicalDeviceWaylandPresentationSupportKHR
(
phys_dev
,
index
,
process_wayland
.
wl_display
);
}
static
VkSurfaceKHR
wayland_wine_get_native_surface
(
VkSurfaceKHR
surface
)
{
return
wine_vk_surface_from_handle
(
surface
)
->
native
;
...
...
@@ -642,6 +654,7 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormatsKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfacePresentModesKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceSupportKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceWaylandPresentationSupportKHR
);
#undef LOAD_FUNCPTR
#undef LOAD_OPTIONAL_FUNCPTR
...
...
@@ -669,6 +682,7 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkGetPhysicalDeviceSurfaceFormatsKHR
=
wayland_vkGetPhysicalDeviceSurfaceFormatsKHR
,
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
=
wayland_vkGetPhysicalDeviceSurfacePresentModesKHR
,
.
p_vkGetPhysicalDeviceSurfaceSupportKHR
=
wayland_vkGetPhysicalDeviceSurfaceSupportKHR
,
.
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
=
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
.
p_wine_get_native_surface
=
wayland_wine_get_native_surface
,
};
...
...
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