meson: kmsro: require dri3 for X11
authorErico Nunes <nunes.erico@gmail.com>
Thu, 10 Jun 2021 19:20:28 +0000 (21:20 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 11 Jun 2021 11:12:43 +0000 (11:12 +0000)
commit479bda78480d472e1f311bf0ea5b5fafb47ac7ba
tree70ae2e3d7ec93614476b830b6a277300d9879b7c
parentbb1c06343d85158bf4ac12b90e0f768cd7267640
meson: kmsro: require dri3 for X11

The current implementation in kmsro relies on buffer sharing using
WINSYS_HANDLE_TYPE_FD, which in x11 is only used by default when dri3
is enabled.
Since the current implementation will not work without it, we can
prevent user error by checking that it is not disabled at configuration
time.

Closes #4861

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11305>
meson.build