Revert "vl: Enable DRM by default."
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 4 Jun 2019 21:14:56 +0000 (23:14 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 4 Jun 2019 21:14:56 +0000 (23:14 +0200)
Reason:

meson.build:586:7: ERROR: Unknown variable "dep_libdrm".

if building without x11 platform.

This reverts commit 392c60928a5debbe6782ed1aa136597504bfbc5b.

meson.build
src/gallium/auxiliary/meson.build
src/gallium/auxiliary/vl/vl_winsys.h

index 949ab9700892a7cb4bad9be0e72b18fee83de5c1..23038295a8a5517f67203697a3047507f506e8f5 100644 (file)
@@ -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
index 668f6c09e01ea90e53ad2f8efe3a66fc7e0f9258..e76b2ac912eb35f4922160cedb64fb25a1095a6f 100644 (file)
@@ -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
 
index 322de72487a77377a3deaa31f92b501cf4e24f83..3a35cb6a8596840eab0cd5ccf0b82825d3fccb0a 100644 (file)
@@ -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