[PATCH libdrm 08/23] meson: fix tegra=auto detection (was always false)

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

 



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

diff --git a/meson.build b/meson.build
index 76eefaeca20ad80ba1ef..a5b71c5e8fb55600458e 100644
--- a/meson.build
+++ b/meson.build
@@ -151,11 +151,13 @@ endif
 
 with_tegra = false
 _tegra = get_option('tegra')
-if _tegra == 'true'
-  if not with_atomics
-    error('libdrm_tegra requires atomics.')
-  endif
-  with_tegra = true
+if _tegra == 'auto'
+  with_tegra = with_atomics
+else
+  with_tegra = _tegra == 'true'
+endif
+if with_tegra and not with_atomics
+  error('libdrm_tegra requires atomics.')
 endif
 
 with_etnaviv = 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