[PATCH libdrm 23/23] meson: use simple option handling for etnaviv
Eric Engestrom
eric.engestrom at imgtec.com
Tue Mar 20 17:46:59 UTC 2018
Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
---
meson.build | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/meson.build b/meson.build
index e3df4cd8e8dc475ba373..1dc9a1dd0d310d369f1a 100644
--- a/meson.build
+++ b/meson.build
@@ -80,6 +80,7 @@ foreach d : [
['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
['tegra', true, true],
['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
+ ['etnaviv', true, true],
]
driver = d[0]
require_atomics = d[1]
@@ -100,17 +101,6 @@ foreach d : [
endif
endforeach
-with_etnaviv = false
-_etnaviv = get_option('etnaviv')
-if _etnaviv == 'auto'
- with_etnaviv = with_atomics
-else
- with_etnaviv = _etnaviv == 'true'
-endif
-if with_etnaviv and not with_atomics
- error('libdrm_etnaviv requires atomics.')
-endif
-
# XXX: Aparently only freebsd and dragonfly bsd actually need this (and
# gnu/kfreebsd), not openbsd and netbsd
with_libkms = false
--
Cheers,
Eric
More information about the dri-devel
mailing list