[PATCH libdrm v2 16/23] meson: use simple option handling for freedreno

[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, 1 insertion(+), 11 deletions(-)

diff --git a/meson.build b/meson.build
index f0804fc5a0a1d907313f..72e5836e78bd239584b3 100644
--- a/meson.build
+++ b/meson.build
@@ -77,6 +77,7 @@ foreach d : [
   ['vmwgfx', false, true],
   ['omap', true, false],
   ['exynos', false, false],
+  ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
 ]
   driver = d[0]
   require_atomics = d[1]
@@ -97,17 +98,6 @@ foreach d : [
   endif
 endforeach
 
-with_freedreno = false
-_freedreno = get_option('freedreno')
-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
 _tegra = get_option('tegra')
 if _tegra == 'true'
-- 
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