mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 01:18:15 +02:00
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> |
||
|---|---|---|
| .. | ||
| meson.build | ||
| wsi_common.c | ||
| wsi_common.h | ||
| wsi_common_display.c | ||
| wsi_common_display.h | ||
| wsi_common_drm.c | ||
| wsi_common_drm.h | ||
| wsi_common_headless.c | ||
| wsi_common_metal.c | ||
| wsi_common_metal_layer.h | ||
| wsi_common_metal_layer.m | ||
| wsi_common_private.h | ||
| wsi_common_queue.h | ||
| wsi_common_wayland.c | ||
| wsi_common_win32.cpp | ||
| wsi_common_x11.c | ||