mesa/src/vulkan/wsi
Christian Gmeiner b393518bdf
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run
treewide: Use wsi_common_is_swapchain_image() helper
Replace the duplicated swapchain image detection pattern across all
Vulkan drivers with the new wsi_common_is_swapchain_image() helper.

Since the swapchain handle can be extracted from VkImageCreateInfo's
pNext chain inside wsi_common_create_swapchain_image(), remove the
now-redundant VkSwapchainKHR parameter from that function.

This removes the #ifdef guards for Android/WSI platforms from each
driver, as the helper now handles this uniformly.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38541>
2025-12-11 20:20:39 +00:00
..
meson.build x11: Add an x11_xlib_display_is_thread_safe() helper 2025-07-16 01:32:56 +00:00
wsi_common.c treewide: Use wsi_common_is_swapchain_image() helper 2025-12-11 20:20:39 +00:00
wsi_common.h treewide: Use wsi_common_is_swapchain_image() helper 2025-12-11 20:20:39 +00:00
wsi_common_display.c vulkan/wsi: Promote EXT_swapchain/surface_maintenance1. 2025-11-30 10:30:52 +01:00
wsi_common_display.h
wsi_common_drm.c wsi: Fix the flagging of dma_buf_sync_file for the amdgpu workaround. 2025-10-20 03:58:47 +00:00
wsi_common_drm.h vk/wsi: C++-proof wsi_common_drm.h 2023-03-24 15:49:25 +00:00
wsi_common_headless.c vulkan/wsi/headless: clean up headless wsi device and headers 2025-08-10 07:16:46 +00:00
wsi_common_metal.c wsi/metal: Fix blit_imate_to_image's pool selection for cmd buffer alloc 2025-12-04 20:08:02 +00:00
wsi_common_metal_layer.h wsi/metal: Disable reference counting 2025-10-13 20:17:16 +00:00
wsi_common_metal_layer.m docs: update/fix vk spec urls 2025-10-22 09:23:34 +02:00
wsi_common_private.h Revert "wsi: Implements scaling controls for DRI3 presentation." 2025-10-16 09:41:00 +00:00
wsi_common_queue.h vulkan/wsi/queue: Use mtx_t and u_cnd_monotonic 2024-07-08 22:09:06 +00:00
wsi_common_wayland.c vulkan/wsi: Promote EXT_swapchain/surface_maintenance1. 2025-11-30 10:30:52 +01:00
wsi_common_win32.cpp vulkan/wsi: Promote EXT_swapchain/surface_maintenance1. 2025-11-30 10:30:52 +01:00
wsi_common_x11.c vulkan/wsi: Promote EXT_swapchain/surface_maintenance1. 2025-11-30 10:30:52 +01:00