diff mbox

[libdrm,13/23] meson: use simple option handling for intel

Message ID 20180320174659.1510-14-eric.engestrom@imgtec.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Engestrom March 20, 2018, 5:46 p.m. UTC
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index c8b17c6cb988ed8f9330..5f88c7d5fe55249798a2 100644
--- a/meson.build
+++ b/meson.build
@@ -70,6 +70,7 @@  config.set10('HAVE_LIBDRM_ATOMIC_PRIMITIVES', intel_atomics)
 config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics)
 
 foreach d : [
+  ['intel', true, host_machine.cpu_family().startswith('x86')],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -90,17 +91,6 @@  foreach d : [
   endif
 endforeach
 
-with_intel = false
-_intel = get_option('intel')
-if _intel == 'auto'
-  with_intel = with_atomics and host_machine.cpu_family().startswith('x86')
-else
-  with_intel = _intel == 'true'
-endif
-if with_intel and not with_atomics
-  error('libdrm_intel requires atomics.')
-endif
-
 with_radeon = false
 _radeon = get_option('radeon')
 if _radeon == 'auto'