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
1de20f86
Commit
1de20f86
authored
Apr 05, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Move __wine_get_vulkan_driver call to Unix lib.
parent
35413f92
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
Makefile.in
dlls/winevulkan/Makefile.in
+1
-1
loader.c
dlls/winevulkan/loader.c
+1
-14
vulkan.c
dlls/winevulkan/vulkan.c
+8
-1
No files found.
dlls/winevulkan/Makefile.in
View file @
1de20f86
...
@@ -2,7 +2,7 @@ MODULE = winevulkan.dll
...
@@ -2,7 +2,7 @@ MODULE = winevulkan.dll
UNIXLIB
=
winevulkan.so
UNIXLIB
=
winevulkan.so
IMPORTLIB
=
winevulkan
IMPORTLIB
=
winevulkan
IMPORTS
=
user32 gdi32 advapi32 setupapi win32u
IMPORTS
=
user32 gdi32 advapi32 setupapi win32u
UNIX_LIBS
=
$(PTHREAD_LIBS)
UNIX_LIBS
=
-lwin32u
$(PTHREAD_LIBS)
C_SRCS
=
\
C_SRCS
=
\
loader.c
\
loader.c
\
...
...
dlls/winevulkan/loader.c
View file @
1de20f86
...
@@ -215,24 +215,11 @@ VkResult WINAPI vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *supported_ver
...
@@ -215,24 +215,11 @@ VkResult WINAPI vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *supported_ver
static
BOOL
WINAPI
wine_vk_init
(
INIT_ONCE
*
once
,
void
*
param
,
void
**
context
)
static
BOOL
WINAPI
wine_vk_init
(
INIT_ONCE
*
once
,
void
*
param
,
void
**
context
)
{
{
const
void
*
driver
;
driver
=
__wine_get_vulkan_driver
(
WINE_VULKAN_DRIVER_VERSION
);
if
(
!
driver
)
{
ERR
(
"Failed to load Wine graphics driver supporting Vulkan.
\n
"
);
return
FALSE
;
}
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstance
,
MemoryWineUnixFuncs
,
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstance
,
MemoryWineUnixFuncs
,
&
unix_handle
,
sizeof
(
unix_handle
),
NULL
))
&
unix_handle
,
sizeof
(
unix_handle
),
NULL
))
return
FALSE
;
return
FALSE
;
if
(
vk_unix_call
(
unix_init
,
&
driver
)
||
!
driver
)
return
!
vk_unix_call
(
unix_init
,
&
unix_funcs
);
return
FALSE
;
unix_funcs
=
driver
;
return
TRUE
;
}
}
static
BOOL
wine_vk_init_once
(
void
)
static
BOOL
wine_vk_init_once
(
void
)
...
...
dlls/winevulkan/vulkan.c
View file @
1de20f86
...
@@ -436,7 +436,14 @@ static void wine_vk_device_free(struct VkDevice_T *device)
...
@@ -436,7 +436,14 @@ static void wine_vk_device_free(struct VkDevice_T *device)
NTSTATUS
init_vulkan
(
void
*
args
)
NTSTATUS
init_vulkan
(
void
*
args
)
{
{
vk_funcs
=
*
(
const
struct
vulkan_funcs
**
)
args
;
vk_funcs
=
__wine_get_vulkan_driver
(
WINE_VULKAN_DRIVER_VERSION
);
if
(
!
vk_funcs
)
{
ERR
(
"Failed to load Wine graphics driver supporting Vulkan.
\n
"
);
return
STATUS_UNSUCCESSFUL
;
}
*
(
const
struct
unix_funcs
**
)
args
=
&
loader_funcs
;
*
(
const
struct
unix_funcs
**
)
args
=
&
loader_funcs
;
return
STATUS_SUCCESS
;
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