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
006eae34
Commit
006eae34
authored
Nov 25, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Use the Unix call helpers.
parent
86554e81
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
loader.c
dlls/winevulkan/loader.c
+1
-3
loader_thunks.c
dlls/winevulkan/loader_thunks.c
+0
-0
make_vulkan
dlls/winevulkan/make_vulkan
+1
-1
vulkan_loader.h
dlls/winevulkan/vulkan_loader.h
+5
-2
No files found.
dlls/winevulkan/loader.c
View file @
006eae34
...
...
@@ -36,7 +36,6 @@ DEFINE_DEVPROPKEY(DEVPROPKEY_GPU_LUID, 0x60b193cb, 0x5276, 0x4d0f, 0x96, 0xfc, 0
DEFINE_DEVPROPKEY
(
WINE_DEVPROPKEY_GPU_VULKAN_UUID
,
0x233a9ef3
,
0xafc4
,
0x4abd
,
0xb5
,
0x64
,
0xc3
,
0x2f
,
0x21
,
0xf1
,
0x53
,
0x5c
,
2
);
NTSTATUS
(
WINAPI
*
p_vk_direct_unix_call
)(
unixlib_handle_t
handle
,
unsigned
int
code
,
void
*
args
)
=
__wine_unix_call
;
unixlib_handle_t
unix_handle
;
static
HINSTANCE
hinstance
;
...
...
@@ -235,8 +234,7 @@ VkResult WINAPI vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *supported_ver
static
BOOL
WINAPI
wine_vk_init
(
INIT_ONCE
*
once
,
void
*
param
,
void
**
context
)
{
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstance
,
MemoryWineUnixFuncs
,
&
unix_handle
,
sizeof
(
unix_handle
),
NULL
))
if
(
__wine_init_unix_call
())
return
FALSE
;
return
!
vk_unix_call
(
unix_init
,
&
p_vk_direct_unix_call
);
...
...
dlls/winevulkan/loader_thunks.c
View file @
006eae34
This diff is collapsed.
Click to expand it.
dlls/winevulkan/make_vulkan
View file @
006eae34
...
...
@@ -746,7 +746,7 @@ class VkFunction(object):
# Call the Unix function.
if
self
.
needs_direct_call
():
body
+=
"status = p_vk_direct_unix_call(
unix
_handle, unix_{0}, ¶ms);
\n
"
.
format
(
self
.
name
)
body
+=
"status = p_vk_direct_unix_call(
__wine_unixlib
_handle, unix_{0}, ¶ms);
\n
"
.
format
(
self
.
name
)
else
:
body
+=
"status = vk_unix_call(unix_{0}, ¶ms);
\n
"
.
format
(
self
.
name
)
body
+=
" assert(!status);
\n
"
...
...
dlls/winevulkan/vulkan_loader.h
View file @
006eae34
...
...
@@ -145,13 +145,16 @@ struct is_available_device_function_params
const
char
*
name
;
};
#ifndef WINE_UNIX_LIB
extern
NTSTATUS
(
WINAPI
*
p_vk_direct_unix_call
)(
unixlib_handle_t
handle
,
unsigned
int
code
,
void
*
args
)
DECLSPEC_HIDDEN
;
extern
unixlib_handle_t
unix_handle
DECLSPEC_HIDDEN
;
static
inline
NTSTATUS
vk_unix_call
(
enum
unix_call
code
,
void
*
params
)
{
return
__wine_unix_call
(
unix_handle
,
code
,
params
);
return
WINE_UNIX_CALL
(
code
,
params
);
}
#endif
/* WINE_UNIX_LIB */
#endif
/* __WINE_VULKAN_LOADER_H */
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