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
af2f0c79
Commit
af2f0c79
authored
Nov 11, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Convert all 32-bit structs containing pNext pointer.
parent
daf1883b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
make_vulkan
dlls/winevulkan/make_vulkan
+9
-0
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+0
-0
No files found.
dlls/winevulkan/make_vulkan
View file @
af2f0c79
...
@@ -1806,6 +1806,10 @@ class VkStruct(Sequence):
...
@@ -1806,6 +1806,10 @@ class VkStruct(Sequence):
"VkPipelineShaderStageRequiredSubgroupSizeCreateInfo"
]:
"VkPipelineShaderStageRequiredSubgroupSizeCreateInfo"
]:
returnedonly
=
False
returnedonly
=
False
# Those structs don't have returnedonly in spec, but they could (should?).
if
name
in
[
"VkSurfaceCapabilitiesPresentBarrierNV"
]:
returnedonly
=
True
structextends
=
struct
.
attrib
.
get
(
"structextends"
)
structextends
=
struct
.
attrib
.
get
(
"structextends"
)
structextends
=
structextends
.
split
(
","
)
if
structextends
else
[]
structextends
=
structextends
.
split
(
","
)
if
structextends
else
[]
...
@@ -1977,6 +1981,9 @@ class VkStruct(Sequence):
...
@@ -1977,6 +1981,9 @@ class VkStruct(Sequence):
continue
continue
if
m
.
name
==
"pNext"
:
if
m
.
name
==
"pNext"
:
# pNext is a pointer, so it always needs conversion
if
conv
and
direction
==
Direction
.
INPUT
:
return
True
# we need input conversion of structs containing struct chain even if it's returnedonly
# we need input conversion of structs containing struct chain even if it's returnedonly
if
direction
==
Direction
.
INPUT
and
\
if
direction
==
Direction
.
INPUT
and
\
self
.
needs_conversion
(
conv
,
unwrap
,
Direction
.
OUTPUT
,
is_const
):
self
.
needs_conversion
(
conv
,
unwrap
,
Direction
.
OUTPUT
,
is_const
):
...
@@ -2030,6 +2037,8 @@ class VkStruct(Sequence):
...
@@ -2030,6 +2037,8 @@ class VkStruct(Sequence):
for
m
in
self
.
members
:
for
m
in
self
.
members
:
if
self
.
name
==
m
.
type
:
if
self
.
name
==
m
.
type
:
continue
continue
if
m
.
name
==
"pNext"
:
return
True
if
m
.
needs_alignment
():
if
m
.
needs_alignment
():
return
True
return
True
if
m
.
is_struct
()
and
m
.
struct
.
needs_host_type
():
if
m
.
is_struct
()
and
m
.
struct
.
needs_host_type
():
...
...
dlls/winevulkan/vulkan_thunks.c
View file @
af2f0c79
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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