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
67c9ff6f
Commit
67c9ff6f
authored
Oct 27, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Don't check thunk_type in VkParam.needs_unwrapping.
parent
ce125cc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
make_vulkan
dlls/winevulkan/make_vulkan
+0
-3
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+14
-3
No files found.
dlls/winevulkan/make_vulkan
View file @
67c9ff6f
...
...
@@ -1728,9 +1728,6 @@ class VkParam(VkVariable):
def
needs_unwrapping
(
self
):
""" Returns if parameter needs unwrapping of handle. """
if
self
.
func
.
needs_private_thunk
():
return
False
# Wrapped handle parameters are handled separately, only look for wrapped handles in structs
if
self
.
is_struct
():
return
self
.
struct
.
needs_unwrapping
()
...
...
dlls/winevulkan/vulkan_thunks.c
View file @
67c9ff6f
...
...
@@ -2158,13 +2158,13 @@ static inline void convert_VkPhysicalDeviceProperties2_host_to_win32(const VkPhy
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPhysicalDeviceSurfaceInfo2KHR_win32_to_host
(
const
VkPhysicalDeviceSurfaceInfo2KHR
*
in
,
VkPhysicalDeviceSurfaceInfo2KHR_host
*
out
)
static
inline
void
convert_VkPhysicalDeviceSurfaceInfo2KHR_win32_to_
unwrapped_
host
(
const
VkPhysicalDeviceSurfaceInfo2KHR
*
in
,
VkPhysicalDeviceSurfaceInfo2KHR_host
*
out
)
{
if
(
!
in
)
return
;
out
->
sType
=
in
->
sType
;
out
->
pNext
=
in
->
pNext
;
out
->
surface
=
wine_surface_from_handle
(
in
->
surface
)
->
driver_
surface
;
out
->
surface
=
in
->
surface
;
}
#endif
/* USE_STRUCT_CONVERSION */
...
...
@@ -2180,6 +2180,17 @@ static inline void convert_VkPhysicalDeviceSurfaceInfo2KHR_win64_to_host(const V
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPhysicalDeviceSurfaceInfo2KHR_win32_to_host
(
const
VkPhysicalDeviceSurfaceInfo2KHR
*
in
,
VkPhysicalDeviceSurfaceInfo2KHR_host
*
out
)
{
if
(
!
in
)
return
;
out
->
sType
=
in
->
sType
;
out
->
pNext
=
in
->
pNext
;
out
->
surface
=
wine_surface_from_handle
(
in
->
surface
)
->
driver_surface
;
}
#endif
/* USE_STRUCT_CONVERSION */
#if defined(USE_STRUCT_CONVERSION)
static
inline
void
convert_VkPipelineExecutableInfoKHR_win32_to_host
(
const
VkPipelineExecutableInfoKHR
*
in
,
VkPipelineExecutableInfoKHR_host
*
out
)
{
if
(
!
in
)
return
;
...
...
@@ -17227,7 +17238,7 @@ static NTSTATUS thunk32_vkGetPhysicalDeviceSurfaceCapabilities2KHR(void *args)
TRACE
(
"%p, %p, %p
\n
"
,
params
->
physicalDevice
,
params
->
pSurfaceInfo
,
params
->
pSurfaceCapabilities
);
convert_VkPhysicalDeviceSurfaceInfo2KHR_win32_to_host
(
params
->
pSurfaceInfo
,
&
pSurfaceInfo_host
);
convert_VkPhysicalDeviceSurfaceInfo2KHR_win32_to_
unwrapped_
host
(
params
->
pSurfaceInfo
,
&
pSurfaceInfo_host
);
params
->
result
=
wine_vkGetPhysicalDeviceSurfaceCapabilities2KHR
(
params
->
physicalDevice
,
&
pSurfaceInfo_host
,
params
->
pSurfaceCapabilities
);
return
STATUS_SUCCESS
;
}
...
...
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