summaryrefslogtreecommitdiff
path: root/src/vulkan/wsi/wsi_common_display.c
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2023-01-26 10:04:37 -0800
committerMarge Bot <emma+marge@anholt.net>2023-02-02 01:30:28 +0000
commit747604b17c5e7117c47c1781f2ea8ee0c6f0b710 (patch)
tree43301cee14daa79a9697479a24957f987cb22309 /src/vulkan/wsi/wsi_common_display.c
parent0c083d29a55bf20a993eab82786d583403582c8c (diff)
downloadmesa-747604b17c5e7117c47c1781f2ea8ee0c6f0b710.tar.gz
mesa-747604b17c5e7117c47c1781f2ea8ee0c6f0b710.tar.bz2
mesa-747604b17c5e7117c47c1781f2ea8ee0c6f0b710.zip
vulkan/wsi: Add a wsi_device param to get_present_modes
The Win32 WSI will want to query capabilities of the device to determine what's available. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20945>
Diffstat (limited to 'src/vulkan/wsi/wsi_common_display.c')
-rw-r--r--src/vulkan/wsi/wsi_common_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
index cf2ac7bb28d..83b0b38d434 100644
--- a/src/vulkan/wsi/wsi_common_display.c
+++ b/src/vulkan/wsi/wsi_common_display.c
@@ -1052,6 +1052,7 @@ wsi_display_surface_get_formats2(VkIcdSurfaceBase *surface,
static VkResult
wsi_display_surface_get_present_modes(VkIcdSurfaceBase *surface,
+ struct wsi_device *wsi_device,
uint32_t *present_mode_count,
VkPresentModeKHR *present_modes)
{