vulkan/wsi/wayland: generalize modifier handling
Instead of having hard-coded lists of modifiers for argb8888 and xrgb8888, store a list of modifiers alongside each VkFormat. To achieve this goal, introduce a new struct wsi_wl_format that holds both a VkFormat and a modifier list, and use it for the items in the formats list. This commit unlocks non-{A,X}RGB8888 formats, which were previously always disabled for linux-dmabuf. Signed-off-by:Simon Ser <contact@emersion.fr> Signed-off-by:
Leandro Ribeiro <leandro.ribeiro@collabora.com> Acked-by:
Daniel Stone <daniels@collabora.com> Part-of: <mesa/mesa!12117>
Please register or sign in to comment