Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8a4e2546
Commit
8a4e2546
authored
Sep 17, 2021
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement vkQueuePresentKHR.
parent
dbf303b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
vulkan.c
dlls/winewayland.drv/vulkan.c
+10
-0
wayland_surface.c
dlls/winewayland.drv/wayland_surface.c
+2
-0
No files found.
dlls/winewayland.drv/vulkan.c
View file @
8a4e2546
...
...
@@ -68,6 +68,7 @@ static VkResult (*pvkGetPhysicalDeviceSurfacePresentModesKHR)(VkPhysicalDevice,
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
VkSurfaceKHR
,
VkBool32
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceWaylandPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
struct
wl_display
*
);
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
VkResult
(
*
pvkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
static
void
*
vulkan_handle
;
static
const
struct
vulkan_funcs
vulkan_funcs
;
...
...
@@ -633,6 +634,13 @@ static VkResult wayland_vkGetSwapchainImagesKHR(VkDevice device, VkSwapchainKHR
return
pvkGetSwapchainImagesKHR
(
device
,
swapchain
,
count
,
images
);
}
static
VkResult
wayland_vkQueuePresentKHR
(
VkQueue
queue
,
const
VkPresentInfoKHR
*
present_info
)
{
TRACE
(
"%p, %p
\n
"
,
queue
,
present_info
);
return
pvkQueuePresentKHR
(
queue
,
present_info
);
}
static
VkSurfaceKHR
wayland_wine_get_native_surface
(
VkSurfaceKHR
surface
)
{
return
wine_vk_surface_from_handle
(
surface
)
->
native
;
...
...
@@ -665,6 +673,7 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceSupportKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceWaylandPresentationSupportKHR
);
LOAD_FUNCPTR
(
vkGetSwapchainImagesKHR
);
LOAD_FUNCPTR
(
vkQueuePresentKHR
);
#undef LOAD_FUNCPTR
#undef LOAD_OPTIONAL_FUNCPTR
...
...
@@ -694,6 +703,7 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkGetPhysicalDeviceSurfaceSupportKHR
=
wayland_vkGetPhysicalDeviceSurfaceSupportKHR
,
.
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
=
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
.
p_vkGetSwapchainImagesKHR
=
wayland_vkGetSwapchainImagesKHR
,
.
p_vkQueuePresentKHR
=
wayland_vkQueuePresentKHR
,
.
p_wine_get_native_surface
=
wayland_wine_get_native_surface
,
};
...
...
dlls/winewayland.drv/wayland_surface.c
View file @
8a4e2546
...
...
@@ -803,6 +803,8 @@ struct wayland_client_surface *wayland_surface_get_client(struct wayland_surface
ERR
(
"Failed to create client wl_subsurface
\n
"
);
goto
err
;
}
/* Present contents independently of the parent surface. */
wl_subsurface_set_desync
(
surface
->
client
->
wl_subsurface
);
if
(
process_wayland
.
wp_viewporter
)
{
...
...
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