aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2019-10-03 10:17:08 -0700
committerVinson Lee <[email protected]>2019-10-03 22:14:20 -0700
commit1481d0540987cca11cb76c39f7c0fa84983d9e3b (patch)
tree8ac417b3ab784256e9d5a927a025b23baa6d9e7d /meson.build
parentdcd2f26b986d509b4e9a9f2266b79f0c46db8d04 (diff)
meson: Only error building gallium video without libdrm when the platform is drm
Fixes: 3b265f61f5f61f08718fe5bb4b2726f9b8e016cc ("meson: gallium media state trackers require libdrm with x11") Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1878 Tested-by: Vinson Lee <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 5ceda5c7969..bce17a7cdc2 100644
--- a/meson.build
+++ b/meson.build
@@ -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