meson: Only error building gallium video without libdrm when the platform is drm

Fixes: 3b265f61f5
       ("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>
This commit is contained in:
Dylan Baker 2019-10-03 10:17:08 -07:00 committed by Vinson Lee
parent dcd2f26b98
commit 1481d05409
1 changed files with 1 additions and 1 deletions

View 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