Skip to contentSkip to conversation

meson: honor -Detnaviv=auto

PATCH In review Guido Günther 2 participants 2 messages Sep 21, 2018 – Sep 24, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: honor -Detnaviv=auto

We support that value so it should work as expected. This does not make 'auto' the default since the API is still marked as experimental.

---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meson.build +2 -2
index 75c7bdff..8001a9cc 100644
@@ -142,11 +142,11 @@ endif
 
 with_etnaviv = false
 _etnaviv = get_option('etnaviv')
-if _etnaviv == 'true'
+if _etnaviv != 'false'
   if not with_atomics
     error('libdrm_etnaviv requires atomics.')
   endif
-  with_etnaviv = true
+  with_etnaviv = _etnaviv == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
 endif
 
 with_exynos = get_option('exynos') == 'true'
Signature · 5 lines
2.18.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Guido Günther

We support that value so it should work as expected. This does not make 'auto' the default since the API is still marked as experimental.

---
 meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meson.build +0 -0
index 75c7bdff..8001a9cc 100644

meson.build endif · line 147

Quoted 7 lines
meson.build +1 -1
@@ -142,11 +142,11 @@ endif
 
 with_etnaviv = false
 _etnaviv = get_option('etnaviv')
-if _etnaviv == 'true'
+if _etnaviv != 'false'
   if not with_atomics
     error('libdrm_etnaviv requires atomics.')

We shouldn't error out in the 'auto' case; please modify the with_atomic if above to add _etnaviv == 'true' and .... With that, the patch is:

meson.build endif · line 149

Quoted 3 lines
meson.build +1 -1
   endif
-  with_etnaviv = true
+  with_etnaviv = _etnaviv == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())

That said, I have no idea if enabling it by default on ARM is the right thing, so I'll let Lucas and/or Christian decide this :)

(You should wait for their reply before sending your v2)

Quoted 9 lines
meson.build +0 -0
 endif
 
 with_exynos = get_option('exynos') == 'true'
Signature · 5 lines
2.18.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel