Mesa (master): Revert "vl: Enable DRM by default."
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 4 21:18:04 UTC 2019
Module: Mesa
Branch: master
Commit: 6256925b1147391fdc62389a3349dec1392df31e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6256925b1147391fdc62389a3349dec1392df31e
Author: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Date: Tue Jun 4 23:14:56 2019 +0200
Revert "vl: Enable DRM by default."
Reason:
meson.build:586:7: ERROR: Unknown variable "dep_libdrm".
if building without x11 platform.
This reverts commit 392c60928a5debbe6782ed1aa136597504bfbc5b.
---
meson.build | 4 ++--
src/gallium/auxiliary/meson.build | 2 +-
src/gallium/auxiliary/vl/vl_winsys.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/meson.build b/meson.build
index 949ab970089..23038295a8a 100644
--- a/meson.build
+++ b/meson.build
@@ -589,9 +589,9 @@ if not system_has_kms_drm
else
_va = 'false'
endif
-elif not (with_platform_x11 or dep_libdrm.found())
+elif not (with_platform_x11 or with_platform_drm)
if _va == 'true'
- error('VA state tracker requires X11 platform support or libdrm.')
+ error('VA state tracker requires X11 or drm or wayland platform support.')
else
_va = 'false'
endif
diff --git a/src/gallium/auxiliary/meson.build b/src/gallium/auxiliary/meson.build
index 668f6c09e01..e76b2ac912e 100644
--- a/src/gallium/auxiliary/meson.build
+++ b/src/gallium/auxiliary/meson.build
@@ -490,7 +490,7 @@ if with_dri2 and with_platform_x11
files_libgalliumvlwinsys += files('vl/vl_winsys_dri3.c')
endif
endif
-if dep_libdrm.found()
+if with_platform_drm
files_libgalliumvlwinsys += files('vl/vl_winsys_drm.c')
endif
diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h
index 322de72487a..3a35cb6a859 100644
--- a/src/gallium/auxiliary/vl/vl_winsys.h
+++ b/src/gallium/auxiliary/vl/vl_winsys.h
@@ -92,7 +92,7 @@ static inline struct vl_screen *
vl_dri3_screen_create(void *display, int screen) { return NULL; };
#endif
-#ifdef HAVE_LIBDRM
+#ifdef HAVE_DRM_PLATFORM
struct vl_screen *
vl_drm_screen_create(int fd);
#else
More information about the mesa-commit
mailing list