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
381125f7
Commit
381125f7
authored
Feb 24, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Remove now unnecessary vkDestroySwapchain driver entry.
parent
fa48563b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
48 deletions
+1
-48
vulkan.c
dlls/win32u/vulkan.c
+0
-2
vulkan.c
dlls/winemac.drv/vulkan.c
+0
-14
make_vulkan
dlls/winevulkan/make_vulkan
+0
-1
vulkan.c
dlls/winewayland.drv/vulkan.c
+0
-15
vulkan.c
dlls/winex11.drv/vulkan.c
+0
-14
vulkan_driver.h
include/wine/vulkan_driver.h
+1
-2
No files found.
dlls/win32u/vulkan.c
View file @
381125f7
...
...
@@ -71,7 +71,6 @@ static void *win32u_vkGetDeviceProcAddr( VkDevice device, const char *name )
TRACE
(
"device %p, name %s
\n
"
,
device
,
debugstr_a
(
name
)
);
if
(
!
strcmp
(
name
,
"vkCreateSwapchainKHR"
))
return
vulkan_funcs
.
p_vkCreateSwapchainKHR
;
if
(
!
strcmp
(
name
,
"vkDestroySwapchainKHR"
))
return
vulkan_funcs
.
p_vkDestroySwapchainKHR
;
if
(
!
strcmp
(
name
,
"vkGetDeviceProcAddr"
))
return
win32u_vkGetDeviceProcAddr
;
if
(
!
strcmp
(
name
,
"vkQueuePresentKHR"
))
return
vulkan_funcs
.
p_vkQueuePresentKHR
;
...
...
@@ -91,7 +90,6 @@ static void *win32u_vkGetInstanceProcAddr( VkInstance instance, const char *name
/* vkGetInstanceProcAddr also loads any children of instance, so device functions as well. */
if
(
!
strcmp
(
name
,
"vkCreateSwapchainKHR"
))
return
vulkan_funcs
.
p_vkCreateSwapchainKHR
;
if
(
!
strcmp
(
name
,
"vkDestroySwapchainKHR"
))
return
vulkan_funcs
.
p_vkDestroySwapchainKHR
;
if
(
!
strcmp
(
name
,
"vkGetDeviceProcAddr"
))
return
win32u_vkGetDeviceProcAddr
;
if
(
!
strcmp
(
name
,
"vkQueuePresentKHR"
))
return
vulkan_funcs
.
p_vkQueuePresentKHR
;
...
...
dlls/winemac.drv/vulkan.c
View file @
381125f7
...
...
@@ -79,7 +79,6 @@ static VkResult (*pvkCreateSwapchainKHR)(VkDevice, const VkSwapchainCreateInfoKH
static
VkResult
(
*
pvkCreateMacOSSurfaceMVK
)(
VkInstance
,
const
VkMacOSSurfaceCreateInfoMVK
*
,
const
VkAllocationCallbacks
*
,
VkSurfaceKHR
*
);
static
VkResult
(
*
pvkCreateMetalSurfaceEXT
)(
VkInstance
,
const
VkMetalSurfaceCreateInfoEXT
*
,
const
VkAllocationCallbacks
*
,
VkSurfaceKHR
*
);
static
void
(
*
pvkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
static
void
(
*
pvkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceCapabilities2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
VkSurfaceCapabilities2KHR
*
);
static
const
struct
vulkan_funcs
vulkan_funcs
;
...
...
@@ -215,17 +214,6 @@ static void macdrv_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface
wine_vk_surface_destroy
(
instance
,
mac_surface
);
}
static
void
macdrv_vkDestroySwapchainKHR
(
VkDevice
device
,
VkSwapchainKHR
swapchain
,
const
VkAllocationCallbacks
*
allocator
)
{
TRACE
(
"%p, 0x%s %p
\n
"
,
device
,
wine_dbgstr_longlong
(
swapchain
),
allocator
);
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
pvkDestroySwapchainKHR
(
device
,
swapchain
,
NULL
/* allocator */
);
}
static
VkBool32
macdrv_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
...
...
@@ -257,7 +245,6 @@ static const struct vulkan_funcs vulkan_funcs =
macdrv_vkCreateSwapchainKHR
,
macdrv_vkCreateWin32SurfaceKHR
,
macdrv_vkDestroySurfaceKHR
,
macdrv_vkDestroySwapchainKHR
,
NULL
,
NULL
,
macdrv_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
...
...
@@ -281,7 +268,6 @@ UINT macdrv_VulkanInit(UINT version, void *vulkan_handle, struct vulkan_funcs *d
LOAD_FUNCPTR
(
vkCreateMacOSSurfaceMVK
)
LOAD_FUNCPTR
(
vkCreateMetalSurfaceEXT
)
LOAD_FUNCPTR
(
vkDestroySurfaceKHR
)
LOAD_FUNCPTR
(
vkDestroySwapchainKHR
)
#undef LOAD_FUNCPTR
*
driver_funcs
=
vulkan_funcs
;
...
...
dlls/winevulkan/make_vulkan
View file @
381125f7
...
...
@@ -198,7 +198,6 @@ USER_DRIVER_FUNCS = {
"vkCreateSwapchainKHR"
,
"vkCreateWin32SurfaceKHR"
,
"vkDestroySurfaceKHR"
,
"vkDestroySwapchainKHR"
,
"vkGetDeviceProcAddr"
,
"vkGetInstanceProcAddr"
,
"vkGetPhysicalDeviceWin32PresentationSupportKHR"
,
...
...
dlls/winewayland.drv/vulkan.c
View file @
381125f7
...
...
@@ -56,7 +56,6 @@ typedef struct VkWaylandSurfaceCreateInfoKHR
static
VkResult
(
*
pvkCreateSwapchainKHR
)(
VkDevice
,
const
VkSwapchainCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSwapchainKHR
*
);
static
VkResult
(
*
pvkCreateWaylandSurfaceKHR
)(
VkInstance
,
const
VkWaylandSurfaceCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSurfaceKHR
*
);
static
void
(
*
pvkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
static
void
(
*
pvkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceWaylandPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
struct
wl_display
*
);
static
const
struct
vulkan_funcs
vulkan_funcs
;
...
...
@@ -198,18 +197,6 @@ static void wayland_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surfac
wine_vk_surface_destroy
(
wine_vk_surface
);
}
static
void
wayland_vkDestroySwapchainKHR
(
VkDevice
device
,
VkSwapchainKHR
swapchain
,
const
VkAllocationCallbacks
*
allocator
)
{
TRACE
(
"%p, 0x%s %p
\n
"
,
device
,
wine_dbgstr_longlong
(
swapchain
),
allocator
);
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
pvkDestroySwapchainKHR
(
device
,
swapchain
,
NULL
/* allocator */
);
}
static
VkBool32
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
...
...
@@ -255,7 +242,6 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkCreateSwapchainKHR
=
wayland_vkCreateSwapchainKHR
,
.
p_vkCreateWin32SurfaceKHR
=
wayland_vkCreateWin32SurfaceKHR
,
.
p_vkDestroySurfaceKHR
=
wayland_vkDestroySurfaceKHR
,
.
p_vkDestroySwapchainKHR
=
wayland_vkDestroySwapchainKHR
,
.
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
=
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
.
p_get_host_surface_extension
=
wayland_get_host_surface_extension
,
.
p_wine_get_host_surface
=
wayland_wine_get_host_surface
,
...
...
@@ -277,7 +263,6 @@ UINT WAYLAND_VulkanInit(UINT version, void *vulkan_handle, struct vulkan_funcs *
LOAD_FUNCPTR
(
vkCreateSwapchainKHR
);
LOAD_FUNCPTR
(
vkCreateWaylandSurfaceKHR
);
LOAD_FUNCPTR
(
vkDestroySurfaceKHR
);
LOAD_FUNCPTR
(
vkDestroySwapchainKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceWaylandPresentationSupportKHR
);
#undef LOAD_FUNCPTR
...
...
dlls/winex11.drv/vulkan.c
View file @
381125f7
...
...
@@ -76,7 +76,6 @@ typedef struct VkXlibSurfaceCreateInfoKHR
static
VkResult
(
*
pvkCreateSwapchainKHR
)(
VkDevice
,
const
VkSwapchainCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSwapchainKHR
*
);
static
VkResult
(
*
pvkCreateXlibSurfaceKHR
)(
VkInstance
,
const
VkXlibSurfaceCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSurfaceKHR
*
);
static
void
(
*
pvkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
static
void
(
*
pvkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceXlibPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
Display
*
,
VisualID
);
static
const
struct
vulkan_funcs
vulkan_funcs
;
...
...
@@ -231,17 +230,6 @@ static void X11DRV_vkDestroySurfaceKHR(VkInstance instance, VkSurfaceKHR surface
wine_vk_surface_release
(
x11_surface
);
}
static
void
X11DRV_vkDestroySwapchainKHR
(
VkDevice
device
,
VkSwapchainKHR
swapchain
,
const
VkAllocationCallbacks
*
allocator
)
{
TRACE
(
"%p, 0x%s %p
\n
"
,
device
,
wine_dbgstr_longlong
(
swapchain
),
allocator
);
if
(
allocator
)
FIXME
(
"Support for allocation callbacks not implemented yet
\n
"
);
pvkDestroySwapchainKHR
(
device
,
swapchain
,
NULL
/* allocator */
);
}
static
VkBool32
X11DRV_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
...
...
@@ -274,7 +262,6 @@ static const struct vulkan_funcs vulkan_funcs =
X11DRV_vkCreateSwapchainKHR
,
X11DRV_vkCreateWin32SurfaceKHR
,
X11DRV_vkDestroySurfaceKHR
,
X11DRV_vkDestroySwapchainKHR
,
NULL
,
NULL
,
X11DRV_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
...
...
@@ -299,7 +286,6 @@ UINT X11DRV_VulkanInit( UINT version, void *vulkan_handle, struct vulkan_funcs *
LOAD_FUNCPTR
(
vkCreateSwapchainKHR
);
LOAD_FUNCPTR
(
vkCreateXlibSurfaceKHR
);
LOAD_FUNCPTR
(
vkDestroySurfaceKHR
);
LOAD_FUNCPTR
(
vkDestroySwapchainKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceXlibPresentationSupportKHR
);
#undef LOAD_FUNCPTR
...
...
include/wine/vulkan_driver.h
View file @
381125f7
...
...
@@ -21,7 +21,7 @@
#define __WINE_VULKAN_DRIVER_H
/* Wine internal vulkan driver version, needs to be bumped upon vulkan_funcs changes. */
#define WINE_VULKAN_DRIVER_VERSION 2
5
#define WINE_VULKAN_DRIVER_VERSION 2
6
struct
vulkan_funcs
{
...
...
@@ -32,7 +32,6 @@ struct vulkan_funcs
VkResult
(
*
p_vkCreateSwapchainKHR
)(
VkDevice
,
const
VkSwapchainCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSwapchainKHR
*
);
VkResult
(
*
p_vkCreateWin32SurfaceKHR
)(
VkInstance
,
const
VkWin32SurfaceCreateInfoKHR
*
,
const
VkAllocationCallbacks
*
,
VkSurfaceKHR
*
);
void
(
*
p_vkDestroySurfaceKHR
)(
VkInstance
,
VkSurfaceKHR
,
const
VkAllocationCallbacks
*
);
void
(
*
p_vkDestroySwapchainKHR
)(
VkDevice
,
VkSwapchainKHR
,
const
VkAllocationCallbacks
*
);
void
*
(
*
p_vkGetDeviceProcAddr
)(
VkDevice
,
const
char
*
);
void
*
(
*
p_vkGetInstanceProcAddr
)(
VkInstance
,
const
char
*
);
VkBool32
(
*
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
);
...
...
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