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
7fd9c158
Commit
7fd9c158
authored
Sep 20, 2021
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement vkGetPhysicalDevicePresentRectanglesKHR.
This is a simple passthrough implementation to the native Vulkan driver.
parent
ef35ddee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
vulkan.c
dlls/winewayland.drv/vulkan.c
+15
-0
No files found.
dlls/winewayland.drv/vulkan.c
View file @
7fd9c158
...
...
@@ -61,6 +61,7 @@ static VkResult (*pvkEnumerateInstanceExtensionProperties)(const char *, uint32_
static
VkResult
(
*
pvkGetDeviceGroupSurfacePresentModesKHR
)(
VkDevice
,
VkSurfaceKHR
,
VkDeviceGroupPresentModeFlagsKHR
*
);
static
void
*
(
*
pvkGetDeviceProcAddr
)(
VkDevice
,
const
char
*
);
static
void
*
(
*
pvkGetInstanceProcAddr
)(
VkInstance
,
const
char
*
);
static
VkResult
(
*
pvkGetPhysicalDevicePresentRectanglesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkRect2D
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceCapabilities2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
VkSurfaceCapabilities2KHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceCapabilitiesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
VkSurfaceCapabilitiesKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormats2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
uint32_t
*
,
VkSurfaceFormat2KHR
*
);
...
...
@@ -585,6 +586,18 @@ static void *wayland_vkGetInstanceProcAddr(VkInstance instance, const char *name
return
pvkGetInstanceProcAddr
(
instance
,
name
);
}
static
VkResult
wayland_vkGetPhysicalDevicePresentRectanglesKHR
(
VkPhysicalDevice
phys_dev
,
VkSurfaceKHR
surface
,
uint32_t
*
count
,
VkRect2D
*
rects
)
{
struct
wine_vk_surface
*
wine_vk_surface
=
wine_vk_surface_from_handle
(
surface
);
TRACE
(
"%p, 0x%s, %p, %p
\n
"
,
phys_dev
,
wine_dbgstr_longlong
(
surface
),
count
,
rects
);
return
pvkGetPhysicalDevicePresentRectanglesKHR
(
phys_dev
,
wine_vk_surface
->
native
,
count
,
rects
);
}
static
VkResult
wayland_vkGetPhysicalDeviceSurfaceCapabilities2KHR
(
VkPhysicalDevice
phys_dev
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
surface_info
,
VkSurfaceCapabilities2KHR
*
capabilities
)
...
...
@@ -794,6 +807,7 @@ static void wine_vk_init(void)
LOAD_OPTIONAL_FUNCPTR
(
vkGetDeviceGroupSurfacePresentModesKHR
);
LOAD_FUNCPTR
(
vkGetDeviceProcAddr
);
LOAD_FUNCPTR
(
vkGetInstanceProcAddr
);
LOAD_OPTIONAL_FUNCPTR
(
vkGetPhysicalDevicePresentRectanglesKHR
);
LOAD_OPTIONAL_FUNCPTR
(
vkGetPhysicalDeviceSurfaceCapabilities2KHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceCapabilitiesKHR
);
LOAD_OPTIONAL_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormats2KHR
);
...
...
@@ -825,6 +839,7 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkGetDeviceGroupSurfacePresentModesKHR
=
wayland_vkGetDeviceGroupSurfacePresentModesKHR
,
.
p_vkGetDeviceProcAddr
=
wayland_vkGetDeviceProcAddr
,
.
p_vkGetInstanceProcAddr
=
wayland_vkGetInstanceProcAddr
,
.
p_vkGetPhysicalDevicePresentRectanglesKHR
=
wayland_vkGetPhysicalDevicePresentRectanglesKHR
,
.
p_vkGetPhysicalDeviceSurfaceCapabilities2KHR
=
wayland_vkGetPhysicalDeviceSurfaceCapabilities2KHR
,
.
p_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
=
wayland_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
,
.
p_vkGetPhysicalDeviceSurfaceFormats2KHR
=
wayland_vkGetPhysicalDeviceSurfaceFormats2KHR
,
...
...
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