vulkan/wsi: Only use a single fd per wsi_image
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 2 Mar 2020 23:38:16 +0000 (17:38 -0600)
committerMarge Bot <emma+marge@anholt.net>
Wed, 4 May 2022 22:09:02 +0000 (22:09 +0000)
commit17fb3ad94f97a908b55f5a7a1f2130b90338bdbd
treee7e5b489ec851bd165696c9b4ec9e0e3b850d1d3
parentc72ff19a9ef7ef0fbb5b9b7ae8c7224523297a62
vulkan/wsi: Only use a single fd per wsi_image

The only thing this was helping was X11 where the protocol requires that
we pass in an array of images.  We can move all the dup() code to the
X11 back-end and leave the others a bit cleaner.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>
src/vulkan/wsi/wsi_common.c
src/vulkan/wsi/wsi_common_display.c
src/vulkan/wsi/wsi_common_drm.c
src/vulkan/wsi/wsi_common_private.h
src/vulkan/wsi/wsi_common_wayland.c
src/vulkan/wsi/wsi_common_x11.c