vulkan/wsi/wayland: switch from alpha/opaque bools to bitfield
authorSimon Ser <contact@emersion.fr>
Fri, 4 Feb 2022 10:46:19 +0000 (11:46 +0100)
committerMarge Bot <emma+marge@anholt.net>
Tue, 15 Feb 2022 09:13:21 +0000 (09:13 +0000)
commit8ac42a3b1b00f7f7af66e15ad3b0411eda8f80a2
treed42814e8d9fface6fe720bba153aecf56be1ae20
parent801d33b2d975dbc5c5b1f461f869319dd61d79e3
vulkan/wsi/wayland: switch from alpha/opaque bools to bitfield

This makes the numerous wsi_wl_display_add_vk_format calls easier
to follow: "ALPHA" is easier to decode than "true, false".

No functional changes, just refactoring.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
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