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
4a16bcf9
Commit
4a16bcf9
authored
Nov 25, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Feb 01, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winevulkan: Remove now unnecessary vkGetPhysicalDeviceSurfacePresentModesKHR driver entry.
parent
70469abc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
51 deletions
+4
-51
vulkan.c
dlls/winemac.drv/vulkan.c
+0
-14
make_vulkan
dlls/winevulkan/make_vulkan
+1
-2
vulkan_thunks.c
dlls/winevulkan/vulkan_thunks.c
+2
-2
vulkan.c
dlls/winewayland.drv/vulkan.c
+0
-16
vulkan.c
dlls/winex11.drv/vulkan.c
+0
-13
vulkan_driver.h
include/wine/vulkan_driver.h
+1
-4
No files found.
dlls/winemac.drv/vulkan.c
View file @
4a16bcf9
...
...
@@ -89,7 +89,6 @@ static VkResult (*pvkGetPhysicalDeviceSurfaceCapabilities2KHR)(VkPhysicalDevice,
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceCapabilitiesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
VkSurfaceCapabilitiesKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormats2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
uint32_t
*
,
VkSurfaceFormat2KHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormatsKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkSurfaceFormatKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfacePresentModesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkPresentModeKHR
*
);
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
VkResult
(
*
pvkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
...
...
@@ -126,7 +125,6 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceCapabilitiesKHR
)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormats2KHR
)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormatsKHR
)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfacePresentModesKHR
)
LOAD_FUNCPTR
(
vkGetSwapchainImagesKHR
)
LOAD_FUNCPTR
(
vkQueuePresentKHR
)
#undef LOAD_FUNCPTR
...
...
@@ -512,17 +510,6 @@ static VkResult macdrv_vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice phy
count
,
formats
);
}
static
VkResult
macdrv_vkGetPhysicalDeviceSurfacePresentModesKHR
(
VkPhysicalDevice
phys_dev
,
VkSurfaceKHR
surface
,
uint32_t
*
count
,
VkPresentModeKHR
*
modes
)
{
struct
wine_vk_surface
*
mac_surface
=
surface_from_handle
(
surface
);
TRACE
(
"%p, 0x%s, %p, %p
\n
"
,
phys_dev
,
wine_dbgstr_longlong
(
surface
),
count
,
modes
);
return
pvkGetPhysicalDeviceSurfacePresentModesKHR
(
phys_dev
,
mac_surface
->
host_surface
,
count
,
modes
);
}
static
VkBool32
macdrv_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
...
...
@@ -593,7 +580,6 @@ static const struct vulkan_funcs vulkan_funcs =
macdrv_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
,
macdrv_vkGetPhysicalDeviceSurfaceFormats2KHR
,
macdrv_vkGetPhysicalDeviceSurfaceFormatsKHR
,
macdrv_vkGetPhysicalDeviceSurfacePresentModesKHR
,
macdrv_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
macdrv_vkGetSwapchainImagesKHR
,
macdrv_vkQueuePresentKHR
,
...
...
dlls/winevulkan/make_vulkan
View file @
4a16bcf9
...
...
@@ -160,7 +160,7 @@ PERF_CRITICAL_FUNCTIONS = [
# Functions part of our winevulkan graphics driver interface.
# DRIVER_VERSION should be bumped on any change to driver interface
# in FUNCTION_OVERRIDES
DRIVER_VERSION
=
1
2
DRIVER_VERSION
=
1
3
# Table of functions for which we have a special implementation.
# These are regular device / instance functions for which we need
...
...
@@ -209,7 +209,6 @@ USER_DRIVER_FUNCS = {
"vkGetPhysicalDeviceSurfaceCapabilitiesKHR"
,
"vkGetPhysicalDeviceSurfaceFormats2KHR"
,
"vkGetPhysicalDeviceSurfaceFormatsKHR"
,
"vkGetPhysicalDeviceSurfacePresentModesKHR"
,
"vkGetPhysicalDeviceWin32PresentationSupportKHR"
,
"vkGetSwapchainImagesKHR"
,
"vkQueuePresentKHR"
,
...
...
dlls/winevulkan/vulkan_thunks.c
View file @
4a16bcf9
...
...
@@ -41861,7 +41861,7 @@ static NTSTATUS thunk64_vkGetPhysicalDeviceSurfacePresentModesKHR(void *args)
TRACE
(
"%p, 0x%s, %p, %p
\n
"
,
params
->
physicalDevice
,
wine_dbgstr_longlong
(
params
->
surface
),
params
->
pPresentModeCount
,
params
->
pPresentModes
);
params
->
result
=
wine_phys_dev_from_handle
(
params
->
physicalDevice
)
->
instance
->
funcs
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
(
wine_phys_dev_from_handle
(
params
->
physicalDevice
)
->
host_physical_device
,
params
->
surface
?
wine_surface_from_handle
(
params
->
surface
)
->
driver
_surface
:
0
,
params
->
pPresentModeCount
,
params
->
pPresentModes
);
params
->
result
=
wine_phys_dev_from_handle
(
params
->
physicalDevice
)
->
instance
->
funcs
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
(
wine_phys_dev_from_handle
(
params
->
physicalDevice
)
->
host_physical_device
,
params
->
surface
?
wine_surface_from_handle
(
params
->
surface
)
->
host
_surface
:
0
,
params
->
pPresentModeCount
,
params
->
pPresentModes
);
return
STATUS_SUCCESS
;
}
#endif
/* _WIN64 */
...
...
@@ -41879,7 +41879,7 @@ static NTSTATUS thunk32_vkGetPhysicalDeviceSurfacePresentModesKHR(void *args)
TRACE
(
"%#x, 0x%s, %#x, %#x
\n
"
,
params
->
physicalDevice
,
wine_dbgstr_longlong
(
params
->
surface
),
params
->
pPresentModeCount
,
params
->
pPresentModes
);
params
->
result
=
wine_phys_dev_from_handle
((
VkPhysicalDevice
)
UlongToPtr
(
params
->
physicalDevice
))
->
instance
->
funcs
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
(
wine_phys_dev_from_handle
((
VkPhysicalDevice
)
UlongToPtr
(
params
->
physicalDevice
))
->
host_physical_device
,
params
->
surface
?
wine_surface_from_handle
(
params
->
surface
)
->
driver
_surface
:
0
,
(
uint32_t
*
)
UlongToPtr
(
params
->
pPresentModeCount
),
(
VkPresentModeKHR
*
)
UlongToPtr
(
params
->
pPresentModes
));
params
->
result
=
wine_phys_dev_from_handle
((
VkPhysicalDevice
)
UlongToPtr
(
params
->
physicalDevice
))
->
instance
->
funcs
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
(
wine_phys_dev_from_handle
((
VkPhysicalDevice
)
UlongToPtr
(
params
->
physicalDevice
))
->
host_physical_device
,
params
->
surface
?
wine_surface_from_handle
(
params
->
surface
)
->
host
_surface
:
0
,
(
uint32_t
*
)
UlongToPtr
(
params
->
pPresentModeCount
),
(
VkPresentModeKHR
*
)
UlongToPtr
(
params
->
pPresentModes
));
return
STATUS_SUCCESS
;
}
dlls/winewayland.drv/vulkan.c
View file @
4a16bcf9
...
...
@@ -66,7 +66,6 @@ static VkResult (*pvkGetPhysicalDeviceSurfaceCapabilities2KHR)(VkPhysicalDevice,
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceCapabilitiesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
VkSurfaceCapabilitiesKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormats2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
uint32_t
*
,
VkSurfaceFormat2KHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormatsKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkSurfaceFormatKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfacePresentModesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkPresentModeKHR
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceWaylandPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
struct
wl_display
*
);
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
VkResult
(
*
pvkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
...
...
@@ -721,19 +720,6 @@ static VkResult wayland_vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice ph
count
,
formats
);
}
static
VkResult
wayland_vkGetPhysicalDeviceSurfacePresentModesKHR
(
VkPhysicalDevice
phys_dev
,
VkSurfaceKHR
surface
,
uint32_t
*
count
,
VkPresentModeKHR
*
modes
)
{
struct
wine_vk_surface
*
wine_vk_surface
=
wine_vk_surface_from_handle
(
surface
);
TRACE
(
"%p, 0x%s, %p, %p
\n
"
,
phys_dev
,
wine_dbgstr_longlong
(
surface
),
count
,
modes
);
return
pvkGetPhysicalDeviceSurfacePresentModesKHR
(
phys_dev
,
wine_vk_surface
->
host_surface
,
count
,
modes
);
}
static
VkBool32
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
...
...
@@ -792,7 +778,6 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceCapabilitiesKHR
);
LOAD_OPTIONAL_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormats2KHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormatsKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfacePresentModesKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceWaylandPresentationSupportKHR
);
LOAD_FUNCPTR
(
vkGetSwapchainImagesKHR
);
LOAD_FUNCPTR
(
vkQueuePresentKHR
);
...
...
@@ -823,7 +808,6 @@ static const struct vulkan_funcs vulkan_funcs =
.
p_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
=
wayland_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
,
.
p_vkGetPhysicalDeviceSurfaceFormats2KHR
=
wayland_vkGetPhysicalDeviceSurfaceFormats2KHR
,
.
p_vkGetPhysicalDeviceSurfaceFormatsKHR
=
wayland_vkGetPhysicalDeviceSurfaceFormatsKHR
,
.
p_vkGetPhysicalDeviceSurfacePresentModesKHR
=
wayland_vkGetPhysicalDeviceSurfacePresentModesKHR
,
.
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
=
wayland_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
.
p_vkGetSwapchainImagesKHR
=
wayland_vkGetSwapchainImagesKHR
,
.
p_vkQueuePresentKHR
=
wayland_vkQueuePresentKHR
,
...
...
dlls/winex11.drv/vulkan.c
View file @
4a16bcf9
...
...
@@ -89,7 +89,6 @@ static VkResult (*pvkGetPhysicalDeviceSurfaceCapabilities2KHR)(VkPhysicalDevice,
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceCapabilitiesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
VkSurfaceCapabilitiesKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormats2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
uint32_t
*
,
VkSurfaceFormat2KHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfaceFormatsKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkSurfaceFormatKHR
*
);
static
VkResult
(
*
pvkGetPhysicalDeviceSurfacePresentModesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkPresentModeKHR
*
);
static
VkBool32
(
*
pvkGetPhysicalDeviceXlibPresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
,
Display
*
,
VisualID
);
static
VkResult
(
*
pvkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
static
VkResult
(
*
pvkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
...
...
@@ -129,7 +128,6 @@ static void wine_vk_init(void)
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceCapabilitiesKHR
);
LOAD_OPTIONAL_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormats2KHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfaceFormatsKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceSurfacePresentModesKHR
);
LOAD_FUNCPTR
(
vkGetPhysicalDeviceXlibPresentationSupportKHR
);
LOAD_FUNCPTR
(
vkGetSwapchainImagesKHR
);
LOAD_FUNCPTR
(
vkQueuePresentKHR
);
...
...
@@ -600,16 +598,6 @@ static VkResult X11DRV_vkGetPhysicalDeviceSurfaceFormatsKHR(VkPhysicalDevice phy
return
pvkGetPhysicalDeviceSurfaceFormatsKHR
(
phys_dev
,
x11_surface
->
host_surface
,
count
,
formats
);
}
static
VkResult
X11DRV_vkGetPhysicalDeviceSurfacePresentModesKHR
(
VkPhysicalDevice
phys_dev
,
VkSurfaceKHR
surface
,
uint32_t
*
count
,
VkPresentModeKHR
*
modes
)
{
struct
wine_vk_surface
*
x11_surface
=
surface_from_handle
(
surface
);
TRACE
(
"%p, 0x%s, %p, %p
\n
"
,
phys_dev
,
wine_dbgstr_longlong
(
surface
),
count
,
modes
);
return
pvkGetPhysicalDeviceSurfacePresentModesKHR
(
phys_dev
,
x11_surface
->
host_surface
,
count
,
modes
);
}
static
VkBool32
X11DRV_vkGetPhysicalDeviceWin32PresentationSupportKHR
(
VkPhysicalDevice
phys_dev
,
uint32_t
index
)
{
...
...
@@ -684,7 +672,6 @@ static const struct vulkan_funcs vulkan_funcs =
X11DRV_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
,
X11DRV_vkGetPhysicalDeviceSurfaceFormats2KHR
,
X11DRV_vkGetPhysicalDeviceSurfaceFormatsKHR
,
X11DRV_vkGetPhysicalDeviceSurfacePresentModesKHR
,
X11DRV_vkGetPhysicalDeviceWin32PresentationSupportKHR
,
X11DRV_vkGetSwapchainImagesKHR
,
X11DRV_vkQueuePresentKHR
,
...
...
include/wine/vulkan_driver.h
View file @
4a16bcf9
...
...
@@ -13,7 +13,7 @@
#define __WINE_VULKAN_DRIVER_H
/* Wine internal vulkan driver version, needs to be bumped upon vulkan_funcs changes. */
#define WINE_VULKAN_DRIVER_VERSION 1
2
#define WINE_VULKAN_DRIVER_VERSION 1
3
struct
vulkan_funcs
{
...
...
@@ -36,7 +36,6 @@ struct vulkan_funcs
VkResult
(
*
p_vkGetPhysicalDeviceSurfaceCapabilitiesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
VkSurfaceCapabilitiesKHR
*
);
VkResult
(
*
p_vkGetPhysicalDeviceSurfaceFormats2KHR
)(
VkPhysicalDevice
,
const
VkPhysicalDeviceSurfaceInfo2KHR
*
,
uint32_t
*
,
VkSurfaceFormat2KHR
*
);
VkResult
(
*
p_vkGetPhysicalDeviceSurfaceFormatsKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkSurfaceFormatKHR
*
);
VkResult
(
*
p_vkGetPhysicalDeviceSurfacePresentModesKHR
)(
VkPhysicalDevice
,
VkSurfaceKHR
,
uint32_t
*
,
VkPresentModeKHR
*
);
VkBool32
(
*
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
)(
VkPhysicalDevice
,
uint32_t
);
VkResult
(
*
p_vkGetSwapchainImagesKHR
)(
VkDevice
,
VkSwapchainKHR
,
uint32_t
*
,
VkImage
*
);
VkResult
(
*
p_vkQueuePresentKHR
)(
VkQueue
,
const
VkPresentInfoKHR
*
);
...
...
@@ -100,8 +99,6 @@ static inline void *get_vulkan_driver_instance_proc_addr(
return
vulkan_funcs
->
p_vkGetPhysicalDeviceSurfaceFormats2KHR
;
if
(
!
strcmp
(
name
,
"GetPhysicalDeviceSurfaceFormatsKHR"
))
return
vulkan_funcs
->
p_vkGetPhysicalDeviceSurfaceFormatsKHR
;
if
(
!
strcmp
(
name
,
"GetPhysicalDeviceSurfacePresentModesKHR"
))
return
vulkan_funcs
->
p_vkGetPhysicalDeviceSurfacePresentModesKHR
;
if
(
!
strcmp
(
name
,
"GetPhysicalDeviceWin32PresentationSupportKHR"
))
return
vulkan_funcs
->
p_vkGetPhysicalDeviceWin32PresentationSupportKHR
;
...
...
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