diff mbox

[libdrm,20/23] meson: use simple option handling for freedreno

Message ID 20180320174659.1510-21-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 46099e5913547af7eed9..761ba442ad4d26259ae5 100644
--- a/meson.build
+++ b/meson.build
@@ -77,6 +77,7 @@  foreach d : [
   ['vmwgfx', false, true],
   ['omap', true, true],
   ['exynos', false, true],
+  ['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 == 'auto'