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
684d51ce
Commit
684d51ce
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
winemac: Remove now unnecessary vulkan function name mapping.
parent
2b25f51e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
vulkan.c
dlls/winemac.drv/vulkan.c
+0
-23
No files found.
dlls/winemac.drv/vulkan.c
View file @
684d51ce
...
...
@@ -408,32 +408,12 @@ static VkResult macdrv_vkEnumerateInstanceExtensionProperties(const char *layer_
return
res
;
}
static
const
char
*
wine_vk_host_fn_name
(
const
char
*
name
)
{
const
char
*
create_surface_name
=
pvkCreateMetalSurfaceEXT
?
"vkCreateMetalSurfaceEXT"
:
"vkCreateMacOSSurfaceMVK"
;
if
(
!
strcmp
(
name
,
"vkCreateWin32SurfaceKHR"
))
return
create_surface_name
;
/* We just need something where non-NULL is returned if the correct extension is enabled.
* So since there is no host equivalent of this function check for the create
* surface function.
*/
if
(
!
strcmp
(
name
,
"vkGetPhysicalDeviceWin32PresentationSupportKHR"
))
return
create_surface_name
;
return
name
;
}
static
void
*
macdrv_vkGetDeviceProcAddr
(
VkDevice
device
,
const
char
*
name
)
{
void
*
proc_addr
;
TRACE
(
"%p, %s
\n
"
,
device
,
debugstr_a
(
name
));
if
(
!
pvkGetDeviceProcAddr
(
device
,
wine_vk_host_fn_name
(
name
)))
return
NULL
;
if
((
proc_addr
=
macdrv_get_vk_device_proc_addr
(
name
)))
return
proc_addr
;
...
...
@@ -446,9 +426,6 @@ static void *macdrv_vkGetInstanceProcAddr(VkInstance instance, const char *name)
TRACE
(
"%p, %s
\n
"
,
instance
,
debugstr_a
(
name
));
if
(
!
pvkGetInstanceProcAddr
(
instance
,
wine_vk_host_fn_name
(
name
)))
return
NULL
;
if
((
proc_addr
=
macdrv_get_vk_instance_proc_addr
(
instance
,
name
)))
return
proc_addr
;
...
...
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