meson: fix with_dri2 definition for GNU Hurd
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 5 Mar 2019 12:32:13 +0000 (12:32 +0000)
committerEric Engestrom <eric@engestrom.ch>
Wed, 6 Mar 2019 12:40:06 +0000 (12:40 +0000)
Suggested-by: Dylan Baker <dylan@pnwbakers.com>
Cc: Timo Aaltonen <tjaalton@debian.org>
Cc: James Clarke <jrtc27@debian.org>
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build

index 46f86eb0000bfd8fc8353a099ae0403746543b52..8a40c48e4355efffbc8718f88f3ea6896c8df507 100644 (file)
@@ -376,7 +376,8 @@ if with_vulkan_icd_dir == ''
   with_vulkan_icd_dir = join_paths(get_option('datadir'), 'vulkan/icd.d')
 endif
 
-with_dri2 = (with_dri or with_any_vk) and with_dri_platform == 'drm'
+with_dri2 = (with_dri or with_any_vk) and (with_dri_platform == 'drm' or
+  host_machine.system() == 'gnu')
 _dri3 = get_option('dri3')
 if _dri3 == 'auto'
   with_dri3 = system_has_kms_drm and with_dri2