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
982c2ede
Commit
982c2ede
authored
Nov 25, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Keep the create_info HWND on the surface wrappers.
parent
62536d16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
vulkan.c
dlls/winevulkan/vulkan.c
+6
-10
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+2
-1
No files found.
dlls/winevulkan/vulkan.c
View file @
982c2ede
...
...
@@ -1450,24 +1450,20 @@ void wine_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR(VkPhysicalDevice phy
properties
->
externalSemaphoreFeatures
=
0
;
}
VkResult
wine_vkCreateWin32SurfaceKHR
(
VkInstance
handle
,
const
VkWin32SurfaceCreateInfoKHR
*
create
I
nfo
,
VkResult
wine_vkCreateWin32SurfaceKHR
(
VkInstance
handle
,
const
VkWin32SurfaceCreateInfoKHR
*
create
_i
nfo
,
const
VkAllocationCallbacks
*
allocator
,
VkSurfaceKHR
*
surface
)
{
struct
wine_instance
*
instance
=
wine_instance_from_handle
(
handle
);
struct
wine_surface
*
object
;
VkResult
res
;
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
object
=
calloc
(
1
,
sizeof
(
*
object
));
if
(
!
object
)
return
VK_ERROR_OUT_OF_HOST_MEMORY
;
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
res
=
instance
->
funcs
.
p_vkCreateWin32SurfaceKHR
(
instance
->
host_instance
,
createInfo
,
NULL
,
&
object
->
driver_surface
)
;
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
))))
return
VK_ERROR_OUT_OF_HOST_MEMORY
;
object
->
hwnd
=
create_info
->
hwnd
;
res
=
instance
->
funcs
.
p_vkCreateWin32SurfaceKHR
(
instance
->
host_instance
,
create_info
,
NULL
/* allocator */
,
&
object
->
driver_surface
);
if
(
res
!=
VK_SUCCESS
)
{
free
(
object
);
...
...
dlls/winevulkan/vulkan_private.h
View file @
982c2ede
...
...
@@ -222,7 +222,8 @@ static inline VkDebugReportCallbackEXT wine_debug_report_callback_to_handle(
struct
wine_surface
{
VkSurfaceKHR
host_surface
;
VkSurfaceKHR
driver_surface
;
/* wine driver surface */
VkSurfaceKHR
driver_surface
;
HWND
hwnd
;
struct
wine_vk_mapping
mapping
;
};
...
...
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