Mesa (main): meson: kmsro: require dri3 for X11

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 11 11:46:45 UTC 2021


Module: Mesa
Branch: main
Commit: 479bda78480d472e1f311bf0ea5b5fafb47ac7ba
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=479bda78480d472e1f311bf0ea5b5fafb47ac7ba

Author: Erico Nunes <nunes.erico at gmail.com>
Date:   Thu Jun 10 21:20:28 2021 +0200

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 at gmail.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11305>

---

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index e7d80820308..f6839842416 100644
--- a/meson.build
+++ b/meson.build
@@ -534,6 +534,10 @@ if with_dri
   endif
 endif
 
+if with_gallium_kmsro and (with_platform_x11 and not with_dri3)
+  error('kmsro requires dri3 for X11 support')
+endif
+
 _vdpau = get_option('gallium-vdpau')
 if _vdpau == 'true'
   _vdpau = 'enabled'



More information about the mesa-commit mailing list