vulkan/wsi: make wl_drm optional
authorChia-I Wu <olvaffe@gmail.com>
Fri, 8 Feb 2019 22:57:33 +0000 (14:57 -0800)
committerKristian H. Kristensen <hoegsberg@gmail.com>
Tue, 9 Apr 2019 00:42:30 +0000 (00:42 +0000)
commit63b823130dfe0be2670c83b365e7e997a1957c8b
tree3b47e7e3be87f39f28a7a52a8cddd52b31edc022
parent5318858f35f9fc4b34c5ed781d4381706ccbe756
vulkan/wsi: make wl_drm optional

When wl_drm is missing and the driver supports modifiers, use
zwp_linux_dmabuf_v1 for the list of supported formats and for buffer
creation.

Limit the supported formats to those with modifiers, which are
WL_DRM_FORMAT_{ARGB8888,XRGB8888} currently.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/vulkan/wsi/wsi_common_wayland.c