meson: Only error building gallium video without libdrm when the platform is drm
authorDylan Baker <dylan@pnwbakers.com>
Thu, 3 Oct 2019 17:17:08 +0000 (10:17 -0700)
committerVinson Lee <vlee@vlee-mbp.corp.dropbox.com>
Fri, 4 Oct 2019 05:14:20 +0000 (22:14 -0700)
Fixes: 3b265f61f5f61f08718fe5bb4b2726f9b8e016cc
       ("meson: gallium media state trackers require libdrm with x11")
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1878
Tested-by: Vinson Lee <vlee@freedesktop.org>
meson.build

index 5ceda5c79694a4f5576ec4302706b593b860d2f3..bce17a7cdc2ab6af19fd4b96fe528fb789c12264 100644 (file)
@@ -1443,7 +1443,7 @@ if with_platform_x11
         with_gallium_omx != 'disabled'))
     dep_xcb = dependency('xcb')
     dep_x11_xcb = dependency('x11-xcb')
-    if not dep_libdrm.found()
+    if with_dri_platform == 'drm' and not dep_libdrm.found()
       error('libdrm required for gallium video statetrackers when using x11')
     endif
   endif