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
f3d3b866
Commit
f3d3b866
authored
Feb 23, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Succeed VK_KHR_win32_surface procs queries when enabled.
parent
f4a91bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
vulkan.c
dlls/winevulkan/vulkan.c
+10
-0
vulkan_private.h
dlls/winevulkan/vulkan_private.h
+1
-0
No files found.
dlls/winevulkan/vulkan.c
View file @
f3d3b866
...
...
@@ -617,6 +617,10 @@ static VkResult wine_vk_instance_convert_create_info(struct conversion_context *
{
object
->
enable_wrapper_list
=
VK_TRUE
;
}
if
(
!
strcmp
(
extension_name
,
"VK_KHR_win32_surface"
))
{
object
->
enable_win32_surface
=
VK_TRUE
;
}
}
if
(
use_external_memory
())
...
...
@@ -2285,6 +2289,12 @@ NTSTATUS vk_is_available_instance_function(void *arg)
{
struct
is_available_instance_function_params
*
params
=
arg
;
struct
wine_instance
*
instance
=
wine_instance_from_handle
(
params
->
instance
);
if
(
!
strcmp
(
params
->
name
,
"vkCreateWin32SurfaceKHR"
))
return
instance
->
enable_win32_surface
;
if
(
!
strcmp
(
params
->
name
,
"vkGetPhysicalDeviceWin32PresentationSupportKHR"
))
return
instance
->
enable_win32_surface
;
return
!!
vk_funcs
->
p_vkGetInstanceProcAddr
(
instance
->
host_instance
,
params
->
name
);
}
...
...
dlls/winevulkan/vulkan_private.h
View file @
f3d3b866
...
...
@@ -99,6 +99,7 @@ struct wine_instance
struct
wine_phys_dev
**
phys_devs
;
uint32_t
phys_dev_count
;
VkBool32
enable_win32_surface
;
VkBool32
enable_wrapper_list
;
struct
list
wrappers
;
pthread_rwlock_t
wrapper_lock
;
...
...
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