[Mesa-dev] [PATCH mesa 6/6] meson: simplify dri3 logic

Eric Engestrom eric.engestrom at imgtec.com
Thu Dec 7 16:52:22 UTC 2017


Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
 meson.build | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/meson.build b/meson.build
index 04e2fdd19d7274aa5ecf..1ab790462daeef8b56e0 100644
--- a/meson.build
+++ b/meson.build
@@ -344,15 +344,9 @@ endif
 with_dri2 = (with_dri or with_any_vk) and with_dri_platform == 'drm'
 with_dri3 = get_option('dri3')
 if with_dri3 == 'auto'
-  if host_machine.system() == 'linux' and with_dri2
-    with_dri3 = true
-  else
-    with_dri3 = false
- endif
-elif with_dri3 == 'true'
-  with_dri3 = true
+  with_dri3 = (host_machine.system() == 'linux' and with_dri2)
 else
-  with_dri3 = false
+  with_dri3 = with_dri3 == 'true'
 endif
 
 if with_any_vk and (with_platform_x11 and not with_dri3)
-- 
Cheers,
  Eric



More information about the mesa-dev mailing list