@@ -130,12 +130,13 @@ endif
with_freedreno = false
_freedreno = get_option('freedreno')
-if _freedreno != 'false'
- if _freedreno == 'true' and not with_atomics
- error('libdrm_freedreno requires atomics.')
- else
- with_freedreno = _freedreno == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family())
- endif
+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
In the 'auto' case, the `with_atomic` check was bypassed. Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> --- meson.build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)