vulkan/wsi/wayland: de-duplicate wsi_wl_display_add_wl_shm_format
authorSimon Ser <contact@emersion.fr>
Fri, 4 Feb 2022 11:10:09 +0000 (12:10 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Feb 2022 09:13:21 +0000 (09:13 +0000)
commit5617d5c88548b4f22f8c665e0337298bc2f8d63f
tree4799c494ffc6c03b55e59e8ad173f608cb618bc7
parent1bdf3501970b6996e3bfe036e2bf22d8e672bea2
vulkan/wsi/wayland: de-duplicate wsi_wl_display_add_wl_shm_format

Re-use wsi_wl_display_add_drm_format_modifier from
wsi_wl_display_add_wl_shm_format instead of maintaining two
separate switches for DRM and shm formats.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14874>
src/vulkan/wsi/wsi_common_wayland.c