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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In the 'auto' case, the `with_atomic` check was bypassed.

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

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
-- 
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux