diff mbox

[libdrm,v2,05/23] meson: don't enable libdrm_freedreno without atomic support

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

Commit Message

Eric Engestrom April 4, 2018, 3:38 p.m. UTC
In the 'auto' case, the `with_atomic` check was bypassed.

Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
---
 meson.build | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/meson.build b/meson.build
index edcc7e8ddc39b1760868..55ad207b6de349863be3 100644
--- a/meson.build
+++ b/meson.build
@@ -130,12 +130,13 @@  endif
 
 with_freedreno = false
 _freedreno = get_option('freedreno')
-if _freedreno != 'false'
-  if _freedreno == 'true' and not with_atomics
-    error('libdrm_freedreno requires atomics.')
-  else
-    with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
-  endif
+if _freedreno == 'auto'
+  with_freedreno =  with_atomics and ['arm', 'aarch64'].contains(host_machine.cpu_family())
+else
+  with_freedreno = _freedreno == 'true'
+endif
+if with_freedreno and not with_atomics
+  error('libdrm_freedreno requires atomics.')
 endif
 
 with_tegra = false