diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-10-03 10:17:08 -0700 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2019-10-07 16:27:07 +0200 |
commit | 7e3d9424034116d3abc47eb92c04da1861d91aab (patch) | |
tree | b3fbdce3de3fb5db4c34c49a2eb940fff96b4830 | |
parent | 142e51da08f76122176db412941972ca52b2ef7b (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 <vlee@freedesktop.org>
(cherry picked from commit 1481d0540987cca11cb76c39f7c0fa84983d9e3b)
-rw-r--r-- | meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 08c72f1b70b..abd27142b03 100644 --- a/meson.build +++ b/meson.build @@ -1435,7 +1435,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 |