meson: fix 'auto' handling of drivers and simplify code
cover meson: fix 'auto' handling of drivers and simplify code
First 5 patches fix a bug where $driver=auto could end up being turned on even though a dependency (with_atomic) is missing.
Next 4 are turning auto=false into auto=true, which I guess might not be what we want. I'm happy to change or drop them if people want, the rebase would be quite easy.
Then a couple aesthetic patches because I find the code easier to read like this; again, I can drop if people disagree.
The diffstat until then is mostly adding code, but that's about to change:
meson.build | 126 ++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 75 insertions(+), 51 deletions(-)
After that, I'm introducing a loop to handle all the copy/pasted code for all the driver options, and then adding them to the list one by one to make it easier to review and/or bisect if I mess it up.
meson.build | 140 ++++++++++++++---------------------------------------------- 1 file changed, 31 insertions(+), 109 deletions(-)
---
Eric Engestrom (23):
meson: don't enable libdrm_intel without atomic support
meson: don't enable libdrm_radeon without atomic support
meson: don't enable libdrm_amdgpu without atomic support
meson: don't enable libdrm_nouveau without atomic support
meson: don't enable libdrm_freedreno without atomic support
meson: fix omap=auto detection (was always false)
meson: fix exynos=auto detection (was always false)
meson: fix tegra=auto detection (was always false)
meson: fix entaviv=auto detection (was always false)
meson: split vc4=auto logic to make it easier to read
meson: split libkms=auto logic to make it easier to read
meson: introduce simpler way to handle driver options
meson: use simple option handling for intel
meson: use simple option handling for radeon
meson: use simple option handling for amdgpu
meson: use simple option handling for nouveau
meson: use simple option handling for vmwgfx
meson: use simple option handling for omap
meson: use simple option handling for exynos
meson: use simple option handling for freedreno
meson: use simple option handling for tegra
meson: use simple option handling for vc4
meson: use simple option handling for etnaviv
meson.build | 120 +++++++++++++++++------------------------------------------- 1 file changed, 33 insertions(+), 87 deletions(-)
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/23 meson: don't enable libdrm_intel without atomic support
In the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
meson.build +7 -6
@@ -71,12 +71,13 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) with_intel = false _intel = get_option('intel') -if _intel != 'false' - if _intel == 'true' and not with_atomics - error('libdrm_intel requires atomics.') - else - with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86') - endif +if _intel == 'auto' + with_intel = with_atomics and host_machine.cpu_family().startswith('x86') +else + with_intel = _intel == 'true' +endif +if with_intel and not with_atomics + error('libdrm_intel requires atomics.') endif with_radeon = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/23 meson: don't enable libdrm_radeon without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -82,11 +82,13 @@ endif with_radeon = false _radeon = get_option('radeon') -if _radeon != 'false' - if _radeon == 'true' and not with_atomics - error('libdrm_radeon requires atomics.') - endif - with_radeon = true +if _radeon == 'auto' + with_radeon = with_atomics +else + with_radeon = _radeon == 'true' +endif +if with_radeon and not with_atomics + error('libdrm_radeon requires atomics.') endif with_amdgpu = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/23 meson: don't enable libdrm_amdgpu without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -93,11 +93,13 @@ endif with_amdgpu = false _amdgpu = get_option('amdgpu') -if _amdgpu != 'false' - if _amdgpu == 'true' and not with_atomics - error('libdrm_amdgpu requires atomics.') - endif - with_amdgpu = true +if _amdgpu == 'auto' + with_amdgpu = with_atomics +else + with_amdgpu = _amdgpu == 'true' +endif +if with_amdgpu and not with_atomics + error('libdrm_amdgpu requires atomics.') endif with_nouveau = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/23 meson: don't enable libdrm_nouveau without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -104,11 +104,13 @@ endif with_nouveau = false _nouveau = get_option('nouveau') -if _nouveau != 'false' - if _nouveau == 'true' and not with_atomics - error('libdrm_nouveau requires atomics.') - endif - with_nouveau = true +if _nouveau == 'auto' + with_nouveau = with_atomics +else + with_nouveau = _nouveau == 'true' +endif +if with_nouveau and not with_atomics + error('libdrm_nouveau requires atomics.') endif with_vmwgfx = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/23 meson: don't enable libdrm_freedreno without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
meson.build +7 -6
@@ -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
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/23 meson: fix omap=auto detection (was always false)
In reply to Eric Engestrom--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -121,11 +121,13 @@ endif with_omap = false _omap = get_option('omap') -if _omap == 'true' - if not with_atomics - error('libdrm_omap requires atomics.') - endif - with_omap = true +if _omap == 'auto' + with_omap = with_atomics +else + with_omap = _omap == 'true' +endif +if with_omap and not with_atomics + error('libdrm_omap requires atomics.') endif with_freedreno = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/23 meson: fix exynos=auto detection (was always false)
In reply to Eric Engestrom--- meson.build | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)
meson.build +8 -2
@@ -130,6 +130,14 @@ if with_omap and not with_atomics error('libdrm_omap requires atomics.') endif +with_exynos = false +_exynos = get_option('exynos') +if _exynos == 'auto' + with_exynos = true +else + with_exynos = _exynos == 'true' +endif + with_freedreno = false _freedreno = get_option('freedreno') if _freedreno == 'auto'
@@ -159,8 +167,6 @@ if _etnaviv == 'true' with_etnaviv = true endif -with_exynos = get_option('exynos') == 'true' - with_vc4 = false _vc4 = get_option('vc4') if _vc4 != 'false'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 8/23 meson: fix tegra=auto detection (was always false)
In reply to Eric Engestrom--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -151,11 +151,13 @@ endif with_tegra = false _tegra = get_option('tegra') -if _tegra == 'true' - if not with_atomics - error('libdrm_tegra requires atomics.') - endif - with_tegra = true +if _tegra == 'auto' + with_tegra = with_atomics +else + with_tegra = _tegra == 'true' +endif +if with_tegra and not with_atomics + error('libdrm_tegra requires atomics.') endif with_etnaviv = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 9/23 meson: fix entaviv=auto detection (was always false)
In reply to Eric Engestrom--- meson.build | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-)
meson.build +10 -9
@@ -160,19 +160,20 @@ if with_tegra and not with_atomics error('libdrm_tegra requires atomics.') endif -with_etnaviv = false -_etnaviv = get_option('etnaviv') -if _etnaviv == 'true' - if not with_atomics - error('libdrm_etnaviv requires atomics.') - endif - with_etnaviv = true -endif - with_vc4 = false _vc4 = get_option('vc4') if _vc4 != 'false' with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) + +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
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 10/23 meson: split vc4=auto logic to make it easier to read
In reply to Eric Engestrom--- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
meson.build +5 -2
@@ -162,8 +162,11 @@ endif with_vc4 = false _vc4 = get_option('vc4') -if _vc4 != 'false' - with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) +if _vc4 == 'auto' + with_vc4 = ['arm', 'aarch64'].contains(host_machine.cpu_family()) +else + with_vc4 = _vc4 == 'true' +endif with_etnaviv = false _etnaviv = get_option('etnaviv')
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 11/23 meson: split libkms=auto logic to make it easier to read
In reply to Eric Engestrom--- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meson.build +4 -2
@@ -183,8 +183,10 @@ endif # gnu/kfreebsd), not openbsd and netbsd with_libkms = false _libkms = get_option('libkms') -if _libkms != 'false' - with_libkms = _libkms == 'true' or ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) +if _libkms == 'auto' + with_libkms = ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) +else + with_libkms = _libkms == 'true' endif # Among others FreeBSD does not have a separate dl library.
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 12/23 meson: introduce simpler way to handle driver options
In reply to Eric Engestrom--- meson.build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
meson.build +21 -0
@@ -69,6 +69,27 @@ endif config.set10('HAVE_LIBDRM_ATOMIC_PRIMITIVES', intel_atomics) config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) +foreach d : [ +] + driver = d[0] + require_atomics = d[1] + default = d[2] + _option = get_option(driver) + + if _option == 'auto' + if with_atomics or not require_atomics + set_variable('with_' + driver, default) + else + set_variable('with_' + driver, false) + endif + else + if _option == 'true' and require_atomics and not with_atomics + error('libdrm_' + driver + ' requires atomics.') + endif + set_variable('with_' + driver, _option == 'true') + endif +endforeach + with_intel = false _intel = get_option('intel') if _intel == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 13/23 meson: use simple option handling for intel
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -70,6 +70,7 @@ config.set10('HAVE_LIBDRM_ATOMIC_PRIMITIVES', intel_atomics) config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) foreach d : [ + ['intel', true, host_machine.cpu_family().startswith('x86')], ] driver = d[0] require_atomics = d[1]
@@ -90,17 +91,6 @@ foreach d : [ endif endforeach -with_intel = false -_intel = get_option('intel') -if _intel == 'auto' - with_intel = with_atomics and host_machine.cpu_family().startswith('x86') -else - with_intel = _intel == 'true' -endif -if with_intel and not with_atomics - error('libdrm_intel requires atomics.') -endif - with_radeon = false _radeon = get_option('radeon') if _radeon == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 14/23 meson: use simple option handling for radeon
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -71,6 +71,7 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) foreach d : [ ['intel', true, host_machine.cpu_family().startswith('x86')], + ['radeon', true, true], ] driver = d[0] require_atomics = d[1]
@@ -91,17 +92,6 @@ foreach d : [ endif endforeach -with_radeon = false -_radeon = get_option('radeon') -if _radeon == 'auto' - with_radeon = with_atomics -else - with_radeon = _radeon == 'true' -endif -if with_radeon and not with_atomics - error('libdrm_radeon requires atomics.') -endif - with_amdgpu = false _amdgpu = get_option('amdgpu') if _amdgpu == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 15/23 meson: use simple option handling for amdgpu
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -72,6 +72,7 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) foreach d : [ ['intel', true, host_machine.cpu_family().startswith('x86')], ['radeon', true, true], + ['amdgpu', true, true], ] driver = d[0] require_atomics = d[1]
@@ -92,17 +93,6 @@ foreach d : [ endif endforeach -with_amdgpu = false -_amdgpu = get_option('amdgpu') -if _amdgpu == 'auto' - with_amdgpu = with_atomics -else - with_amdgpu = _amdgpu == 'true' -endif -if with_amdgpu and not with_atomics - error('libdrm_amdgpu requires atomics.') -endif - with_nouveau = false _nouveau = get_option('nouveau') if _nouveau == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 16/23 meson: use simple option handling for nouveau
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -73,6 +73,7 @@ foreach d : [ ['intel', true, host_machine.cpu_family().startswith('x86')], ['radeon', true, true], ['amdgpu', true, true], + ['nouveau', true, true], ] driver = d[0] require_atomics = d[1]
@@ -93,17 +94,6 @@ foreach d : [ endif endforeach -with_nouveau = false -_nouveau = get_option('nouveau') -if _nouveau == 'auto' - with_nouveau = with_atomics -else - with_nouveau = _nouveau == 'true' -endif -if with_nouveau and not with_atomics - error('libdrm_nouveau requires atomics.') -endif - with_vmwgfx = false _vmwgfx = get_option('vmwgfx') if _vmwgfx != 'false'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 17/23 meson: use simple option handling for vmwgfx
In reply to Eric Engestrom--- meson.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
meson.build +1 -6
@@ -74,6 +74,7 @@ foreach d : [ ['radeon', true, true], ['amdgpu', true, true], ['nouveau', true, true], + ['vmwgfx', false, true], ] driver = d[0] require_atomics = d[1]
@@ -94,12 +95,6 @@ foreach d : [ endif endforeach -with_vmwgfx = false -_vmwgfx = get_option('vmwgfx') -if _vmwgfx != 'false' - with_vmwgfx = true -endif - with_omap = false _omap = get_option('omap') if _omap == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 18/23 meson: use simple option handling for omap
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -75,6 +75,7 @@ foreach d : [ ['amdgpu', true, true], ['nouveau', true, true], ['vmwgfx', false, true], + ['omap', true, true], ] driver = d[0] require_atomics = d[1]
@@ -95,17 +96,6 @@ foreach d : [ endif endforeach -with_omap = false -_omap = get_option('omap') -if _omap == 'auto' - with_omap = with_atomics -else - with_omap = _omap == 'true' -endif -if with_omap and not with_atomics - error('libdrm_omap requires atomics.') -endif - with_exynos = false _exynos = get_option('exynos') if _exynos == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 19/23 meson: use simple option handling for exynos
In reply to Eric Engestrom--- meson.build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
meson.build +1 -8
@@ -76,6 +76,7 @@ foreach d : [ ['nouveau', true, true], ['vmwgfx', false, true], ['omap', true, true], + ['exynos', false, true], ] driver = d[0] require_atomics = d[1]
@@ -96,14 +97,6 @@ foreach d : [ endif endforeach -with_exynos = false -_exynos = get_option('exynos') -if _exynos == 'auto' - with_exynos = true -else - with_exynos = _exynos == 'true' -endif - with_freedreno = false _freedreno = get_option('freedreno') if _freedreno == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 20/23 meson: use simple option handling for freedreno
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -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'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 21/23 meson: use simple option handling for tegra
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -78,6 +78,7 @@ foreach d : [ ['omap', true, true], ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], + ['tegra', true, true], ] driver = d[0] require_atomics = d[1]
@@ -98,17 +99,6 @@ foreach d : [ endif endforeach -with_tegra = false -_tegra = get_option('tegra') -if _tegra == 'auto' - with_tegra = with_atomics -else - with_tegra = _tegra == 'true' -endif -if with_tegra and not with_atomics - error('libdrm_tegra requires atomics.') -endif - with_vc4 = false _vc4 = get_option('vc4') if _vc4 == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 22/23 meson: use simple option handling for vc4
In reply to Eric Engestrom--- meson.build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
meson.build +1 -8
@@ -79,6 +79,7 @@ foreach d : [ ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, true], + ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ] driver = d[0] require_atomics = d[1]
@@ -99,14 +100,6 @@ foreach d : [ endif endforeach -with_vc4 = false -_vc4 = get_option('vc4') -if _vc4 == 'auto' - with_vc4 = ['arm', 'aarch64'].contains(host_machine.cpu_family()) -else - with_vc4 = _vc4 == 'true' -endif - with_etnaviv = false _etnaviv = get_option('etnaviv') if _etnaviv == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 23/23 meson: use simple option handling for etnaviv
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -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
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Eric Engestrom
First 5 patches fix a bug where $driver=auto could end up being turned on even though a dependency (
with_atomic) is missing.Next 4 are turning auto=false into auto=true, which I guess might not be what we want. I'm happy to change or drop them if people want, the rebase would be quite easy.
Yeah, thinking about it a bit more, the new code makes it much easier to change the default value if that's something we want, so for now I'll move these at the end (ie. make them turn true into false in the last column of their respective line), and send this as a v2 tomorrow, with any other comment I would've received in the mean time addressed, that way they'll be trivial to drop without affecting the code.
Quoted 42 lines
Then a couple aesthetic patches because I find the code easier to read like this; again, I can drop if people disagree.
The diffstat until then is mostly adding code, but that's about to change:
meson.build | 126 ++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 75 insertions(+), 51 deletions(-)After that, I'm introducing a loop to handle all the copy/pasted code for all the driver options, and then adding them to the list one by one to make it easier to review and/or bisect if I mess it up.
meson.build | 140 ++++++++++++++---------------------------------------------- 1 file changed, 31 insertions(+), 109 deletions(-)---
Eric Engestrom (23):
meson: don't enablelibdrm_intelwithout atomic support
meson: don't enablelibdrm_radeonwithout atomic support
meson: don't enablelibdrm_amdgpuwithout atomic support
meson: don't enablelibdrm_nouveauwithout atomic support
meson: don't enablelibdrm_freedrenowithout atomic support
meson: fix omap=auto detection (was always false)
meson: fix exynos=auto detection (was always false)
meson: fix tegra=auto detection (was always false)
meson: fix entaviv=auto detection (was always false)
meson: split vc4=auto logic to make it easier to read
meson: split libkms=auto logic to make it easier to read
meson: introduce simpler way to handle driver options
meson: use simple option handling for intel
meson: use simple option handling for radeon
meson: use simple option handling for amdgpu
meson: use simple option handling for nouveau
meson: use simple option handling for vmwgfx
meson: use simple option handling for omap
meson: use simple option handling for exynos
meson: use simple option handling for freedreno
meson: use simple option handling for tegra
meson: use simple option handling for vc4
meson: use simple option handling for etnaviv
Quoted 7 lines
meson.build | 120 +++++++++++++++++------------------------------------------- 1 file changed, 33 insertions(+), 87 deletions(-)Signature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 1/23 meson: don't enable libdrm_intel without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
meson.build +7 -6
@@ -71,12 +71,13 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) with_intel = false _intel = get_option('intel') -if _intel != 'false' - if _intel == 'true' and not with_atomics - error('libdrm_intel requires atomics.') - else - with_intel = _intel == 'true' or host_machine.cpu_family().startswith('x86') - endif +if _intel == 'auto' + with_intel = with_atomics and host_machine.cpu_family().startswith('x86') +else + with_intel = _intel == 'true' +endif +if with_intel and not with_atomics + error('libdrm_intel requires atomics.') endif with_radeon = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 2/23 meson: don't enable libdrm_radeon without atomic support
In the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -82,11 +82,13 @@ endif with_radeon = false _radeon = get_option('radeon') -if _radeon != 'false' - if _radeon == 'true' and not with_atomics - error('libdrm_radeon requires atomics.') - endif - with_radeon = true +if _radeon == 'auto' + with_radeon = with_atomics +else + with_radeon = _radeon == 'true' +endif +if with_radeon and not with_atomics + error('libdrm_radeon requires atomics.') endif with_amdgpu = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 02/23] meson: don't enable libdrm_radeon without atomic support
Quoting Eric Engestrom (2018-04-04 08:37:57)
Quoted 12 lines
In the 'auto' case, the
with_atomiccheck was bypassed.Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)meson.build +0
-0
meson.build endif · line 89
Quoted 8 lines
meson.build +0
-5@@ -82,11 +82,13 @@ endif with_radeon = false _radeon = get_option('radeon') -if _radeon != 'false' - if _radeon == 'true' and not with_atomics - error('libdrm_radeon requires atomics.') - endif - with_radeon = true
What about just change this to with_radeon = with_atomics? We've already verified that if radeon == true that atomics are present.
Quoted 14 lines
meson.build +7
-0+if _radeon == 'auto' + with_radeon = with_atomics +else + with_radeon = _radeon == 'true' +endif +if with_radeon and not with_atomics + error('libdrm_radeon requires atomics.') endif with_amdgpu = falseSignature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 3/23 meson: don't enable libdrm_amdgpu without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -93,11 +93,13 @@ endif with_amdgpu = false _amdgpu = get_option('amdgpu') -if _amdgpu != 'false' - if _amdgpu == 'true' and not with_atomics - error('libdrm_amdgpu requires atomics.') - endif - with_amdgpu = true +if _amdgpu == 'auto' + with_amdgpu = with_atomics +else + with_amdgpu = _amdgpu == 'true' +endif +if with_amdgpu and not with_atomics + error('libdrm_amdgpu requires atomics.') endif with_nouveau = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 4/23 meson: don't enable libdrm_nouveau without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
meson.build +7 -5
@@ -104,11 +104,13 @@ endif with_nouveau = false _nouveau = get_option('nouveau') -if _nouveau != 'false' - if _nouveau == 'true' and not with_atomics - error('libdrm_nouveau requires atomics.') - endif - with_nouveau = true +if _nouveau == 'auto' + with_nouveau = with_atomics +else + with_nouveau = _nouveau == 'true' +endif +if with_nouveau and not with_atomics + error('libdrm_nouveau requires atomics.') endif with_vmwgfx = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 5/23 meson: don't enable libdrm_freedreno without atomic support
In reply to Eric EngestromIn the 'auto' case, the with_atomic check was bypassed.
--- meson.build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
meson.build +7 -6
@@ -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
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 6/23 meson: split vc4=auto logic to make it easier to read
In reply to Eric Engestrom--- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meson.build +4 -2
@@ -161,8 +161,10 @@ with_exynos = get_option('exynos') == 'true' with_vc4 = false _vc4 = get_option('vc4') -if _vc4 != 'false' - with_vc4 = _vc4 == 'true' or ['arm', 'aarch64'].contains(host_machine.cpu_family()) +if _vc4 == 'auto' + with_vc4 = ['arm', 'aarch64'].contains(host_machine.cpu_family()) +else + with_vc4 = _vc4 == 'true' endif # XXX: Aparently only freebsd and dragonfly bsd actually need this (and
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 7/23 meson: split libkms=auto logic to make it easier to read
In reply to Eric Engestrom--- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
meson.build +4 -2
@@ -171,8 +171,10 @@ endif # gnu/kfreebsd), not openbsd and netbsd with_libkms = false _libkms = get_option('libkms') -if _libkms != 'false' - with_libkms = _libkms == 'true' or ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) +if _libkms == 'auto' + with_libkms = ['linux', 'freebsd', 'dragonfly'].contains(host_machine.system()) +else + with_libkms = _libkms == 'true' endif # Among others FreeBSD does not have a separate dl library.
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 8/23 meson: introduce simpler way to handle driver options
In reply to Eric Engestrom--- meson.build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
meson.build +21 -0
@@ -69,6 +69,27 @@ endif config.set10('HAVE_LIBDRM_ATOMIC_PRIMITIVES', intel_atomics) config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) +foreach d : [ +] + driver = d[0] + require_atomics = d[1] + default = d[2] + _option = get_option(driver) + + if _option == 'auto' + if with_atomics or not require_atomics + set_variable('with_' + driver, default) + else + set_variable('with_' + driver, false) + endif + else + if _option == 'true' and require_atomics and not with_atomics + error('libdrm_' + driver + ' requires atomics.') + endif + set_variable('with_' + driver, _option == 'true') + endif +endforeach + with_intel = false _intel = get_option('intel') if _intel == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 9/23 meson: use simple option handling for intel
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -70,6 +70,7 @@ config.set10('HAVE_LIBDRM_ATOMIC_PRIMITIVES', intel_atomics) config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) foreach d : [ + ['intel', true, host_machine.cpu_family().startswith('x86')], ] driver = d[0] require_atomics = d[1]
@@ -90,17 +91,6 @@ foreach d : [ endif endforeach -with_intel = false -_intel = get_option('intel') -if _intel == 'auto' - with_intel = with_atomics and host_machine.cpu_family().startswith('x86') -else - with_intel = _intel == 'true' -endif -if with_intel and not with_atomics - error('libdrm_intel requires atomics.') -endif - with_radeon = false _radeon = get_option('radeon') if _radeon == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 10/23 meson: use simple option handling for radeon
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -71,6 +71,7 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) foreach d : [ ['intel', true, host_machine.cpu_family().startswith('x86')], + ['radeon', true, true], ] driver = d[0] require_atomics = d[1]
@@ -91,17 +92,6 @@ foreach d : [ endif endforeach -with_radeon = false -_radeon = get_option('radeon') -if _radeon == 'auto' - with_radeon = with_atomics -else - with_radeon = _radeon == 'true' -endif -if with_radeon and not with_atomics - error('libdrm_radeon requires atomics.') -endif - with_amdgpu = false _amdgpu = get_option('amdgpu') if _amdgpu == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 11/23 meson: use simple option handling for amdgpu
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -72,6 +72,7 @@ config.set10('HAVE_LIB_ATOMIC_OPS', lib_atomics) foreach d : [ ['intel', true, host_machine.cpu_family().startswith('x86')], ['radeon', true, true], + ['amdgpu', true, true], ] driver = d[0] require_atomics = d[1]
@@ -92,17 +93,6 @@ foreach d : [ endif endforeach -with_amdgpu = false -_amdgpu = get_option('amdgpu') -if _amdgpu == 'auto' - with_amdgpu = with_atomics -else - with_amdgpu = _amdgpu == 'true' -endif -if with_amdgpu and not with_atomics - error('libdrm_amdgpu requires atomics.') -endif - with_nouveau = false _nouveau = get_option('nouveau') if _nouveau == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 12/23 meson: use simple option handling for nouveau
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -73,6 +73,7 @@ foreach d : [ ['intel', true, host_machine.cpu_family().startswith('x86')], ['radeon', true, true], ['amdgpu', true, true], + ['nouveau', true, true], ] driver = d[0] require_atomics = d[1]
@@ -93,17 +94,6 @@ foreach d : [ endif endforeach -with_nouveau = false -_nouveau = get_option('nouveau') -if _nouveau == 'auto' - with_nouveau = with_atomics -else - with_nouveau = _nouveau == 'true' -endif -if with_nouveau and not with_atomics - error('libdrm_nouveau requires atomics.') -endif - with_vmwgfx = false _vmwgfx = get_option('vmwgfx') if _vmwgfx != 'false'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 13/23 meson: use simple option handling for vmwgfx
In reply to Eric Engestrom--- meson.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
meson.build +1 -6
@@ -74,6 +74,7 @@ foreach d : [ ['radeon', true, true], ['amdgpu', true, true], ['nouveau', true, true], + ['vmwgfx', false, true], ] driver = d[0] require_atomics = d[1]
@@ -94,12 +95,6 @@ foreach d : [ endif endforeach -with_vmwgfx = false -_vmwgfx = get_option('vmwgfx') -if _vmwgfx != 'false' - with_vmwgfx = true -endif - with_omap = false _omap = get_option('omap') if _omap == 'true'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 14/23 meson: use simple option handling for omap
In reply to Eric Engestrom--- meson.build | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
meson.build +7 -7
@@ -75,6 +75,7 @@ foreach d : [ ['amdgpu', true, true], ['nouveau', true, true], ['vmwgfx', false, true], + ['omap', true, false], ] driver = d[0] require_atomics = d[1]
@@ -95,13 +96,12 @@ foreach d : [ endif endforeach -with_omap = false -_omap = get_option('omap') -if _omap == 'true' - if not with_atomics - error('libdrm_omap requires atomics.') - endif - with_omap = true +with_exynos = false +_exynos = get_option('exynos') +if _exynos == 'auto' + with_exynos = true +else + with_exynos = _exynos == 'true' endif with_freedreno = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 14/23] meson: use simple option handling for omap
Hi,
Quoted 6 lines · Eric Engestrom
[...]
meson.build +0
-4-with_omap = false -_omap = get_option('omap') -if _omap == 'true' - if not with_atomics
meson.build foreach d : [ · line 105
Quoted 10 lines
meson.build +6
-3- error('libdrm_omap requires atomics.') - endif - with_omap = true +with_exynos = false +_exynos = get_option('exynos') +if _exynos == 'auto' + with_exynos = true +else + with_exynos = _exynos == 'true' endif
Looks like some patch rebasing went wrong with this one (it simplifies omap, but also adds some exynos stuff)?
-- Sebastian
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 14/23] meson: use simple option handling for omap
Quoted 14 lines · Sebastian Reichel
Hi,
Quoted 11 lines · Eric Engestrom
[...]
meson.build +2
-7-with_omap = false -_omap = get_option('omap') -if _omap == 'true' - if not with_atomics - error('libdrm_omap requires atomics.') - endif - with_omap = true +with_exynos = false +_exynos = get_option('exynos')
Quoted 8 lines
meson.build foreach d : [ · line 105
Quoted 5 lines
meson.build +4
-0+if _exynos == 'auto' + with_exynos = true +else + with_exynos = _exynos == 'true' endifLooks like some patch rebasing went wrong with this one (it simplifies omap, but also adds some exynos stuff)?
Indeed, that's a complete rebase fail...
Thanks for not letting me push this unaware :)
I'll send a v3 of 8-19 next week, after landing the first bits (1-7). I think I'll defer 20-23 to after everything else has landed.
Quoted 2 lines
-- Sebastian
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 15/23 meson: use simple option handling for exynos
In reply to Eric Engestrom--- meson.build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
meson.build +1 -8
@@ -76,6 +76,7 @@ foreach d : [ ['nouveau', true, true], ['vmwgfx', false, true], ['omap', true, false], + ['exynos', false, false], ] driver = d[0] require_atomics = d[1]
@@ -96,14 +97,6 @@ foreach d : [ endif endforeach -with_exynos = false -_exynos = get_option('exynos') -if _exynos == 'auto' - with_exynos = true -else - with_exynos = _exynos == 'true' -endif - with_freedreno = false _freedreno = get_option('freedreno') if _freedreno == 'auto'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 16/23 meson: use simple option handling for freedreno
In reply to Eric Engestrom--- meson.build | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-)
meson.build +1 -11
@@ -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'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 17/23 meson: use simple option handling for tegra
In reply to Eric Engestrom--- meson.build | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
meson.build +1 -9
@@ -78,6 +78,7 @@ foreach d : [ ['omap', true, false], ['exynos', false, false], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], + ['tegra', true, false], ] driver = d[0] require_atomics = d[1]
@@ -98,15 +99,6 @@ foreach d : [ endif endforeach -with_tegra = false -_tegra = get_option('tegra') -if _tegra == 'true' - if not with_atomics - error('libdrm_tegra requires atomics.') - endif - with_tegra = true -endif - with_etnaviv = false _etnaviv = get_option('etnaviv') if _etnaviv == 'true'
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 18/23 meson: use simple option handling for vc4
In reply to Eric Engestrom--- meson.build | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
meson.build +1 -8
@@ -79,6 +79,7 @@ foreach d : [ ['exynos', false, false], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false], + ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ] driver = d[0] require_atomics = d[1]
@@ -110,14 +111,6 @@ endif with_exynos = get_option('exynos') == 'true' -with_vc4 = false -_vc4 = get_option('vc4') -if _vc4 == 'auto' - with_vc4 = ['arm', 'aarch64'].contains(host_machine.cpu_family()) -else - with_vc4 = _vc4 == 'true' -endif - # XXX: Aparently only freebsd and dragonfly bsd actually need this (and # gnu/kfreebsd), not openbsd and netbsd with_libkms = false
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 19/23 meson: use simple option handling for etnaviv
In reply to Eric Engestrom--- meson.build | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)
meson.build +1 -9
@@ -80,6 +80,7 @@ foreach d : [ ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())], + ['etnaviv', true, false], ] driver = d[0] require_atomics = d[1]
@@ -100,15 +101,6 @@ foreach d : [ endif endforeach -with_etnaviv = false -_etnaviv = get_option('etnaviv') -if _etnaviv == 'true' - if not with_atomics - error('libdrm_etnaviv requires atomics.') - endif - with_etnaviv = true -endif - with_exynos = get_option('exynos') == 'true' # XXX: Aparently only freebsd and dragonfly bsd actually need this (and
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 19/23] meson: use simple option handling for etnaviv
You can ignore my comments on the first couple of patches if you like, I think the result is much nicer anyway.
1-19 are:
Quoting Eric Engestrom (2018-04-04 08:38:14)
Quoted 37 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-)meson.build +1
-9@@ -80,6 +80,7 @@ foreach d : [ ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())], + ['etnaviv', true, false], ] driver = d[0] require_atomics = d[1]@@ -100,15 +101,6 @@ foreach d : [ endif endforeach -with_etnaviv = false -_etnaviv = get_option('etnaviv') -if _etnaviv == 'true' - if not with_atomics - error('libdrm_etnaviv requires atomics.') - endif - with_etnaviv = true -endif - with_exynos = get_option('exynos') == 'true' # XXX: Aparently only freebsd and dragonfly bsd actually need this (andSignature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 20/23 meson: build omap by default
In reply to Eric Engestrom--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -75,7 +75,7 @@ foreach d : [ ['amdgpu', true, true], ['nouveau', true, true], ['vmwgfx', false, true], - ['omap', true, false], + ['omap', true, true], ['exynos', false, false], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false],
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 21/23 meson: build exynos by default
In reply to Eric Engestrom--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -76,7 +76,7 @@ foreach d : [ ['nouveau', true, true], ['vmwgfx', false, true], ['omap', true, true], - ['exynos', false, false], + ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 21/23] meson: build exynos by default
For exynos and omap, are they in active use anymore? I'm pretty sure that development of omap (the hardware) stopped, and others have told me exynos has stopped too. I also don't think there's any open source consumer, since there is no mesa driver for either of these.
Dylan
Quoting Eric Engestrom (2018-04-04 08:38:16)
Quoted 22 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +1
-1@@ -76,7 +76,7 @@ foreach d : [ ['nouveau', true, true], ['vmwgfx', false, true], ['omap', true, true], - ['exynos', false, false], + ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],Signature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 21/23] meson: build exynos by default
Quoted 4 lines · Dylan Baker
For exynos and omap, are they in active use anymore? I'm pretty sure that development of omap (the hardware) stopped, and others have told me exynos has stopped too. I also don't think there's any open source consumer, since there is no mesa driver for either of these.
Happy to drop these enablement patches; I just like to have everything possible built by default, but if these are dead I'm fine with leaving them disabled by default.
Quoted 18 lines
Dylan
Quoting Eric Engestrom (2018-04-04 08:38:16)
Quoted 14 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +0
-1@@ -76,7 +76,7 @@ foreach d : [ ['nouveau', true, true], ['vmwgfx', false, true], ['omap', true, true], - ['exynos', false, false],
Quoted 8 lines
Quoted 8 lines
meson.build +1
-0+ ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['tegra', true, false], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())],Signature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 21/23] meson: build exynos by default
Quoting Eric Engestrom (2018-04-05 02:48:50)
Quoted 10 lines · Dylan Baker
Quoted 4 lines
For exynos and omap, are they in active use anymore? I'm pretty sure that development of omap (the hardware) stopped, and others have told me exynos has stopped too. I also don't think there's any open source consumer, since there is no mesa driver for either of these.
Happy to drop these enablement patches; I just like to have everything possible built by default, but if these are dead I'm fine with leaving them disabled by default.
Yeah, I just don't know what the right thing is, it just seems like a bad idea to enable something by default that never really got anywhere.
Dylan
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 22/23 meson: build tegra by default
In reply to Eric Engestrom--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -78,7 +78,7 @@ foreach d : [ ['omap', true, true], ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], - ['tegra', true, false], + ['tegra', true, true], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['etnaviv', true, false], ]
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 22/23] meson: build tegra by default
Please CC Thierry or someone else from nvidia about this, Also I think this should be ['arm', 'aarch64'], like vc4 and freedreno.
Quoting Eric Engestrom (2018-04-04 08:38:17)
Quoted 22 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +1
-1@@ -78,7 +78,7 @@ foreach d : [ ['omap', true, true], ['exynos', false, true], ['freedreno', true, ['arm', 'aarch64'].contains(host_machine.cpu_family())], - ['tegra', true, false], + ['tegra', true, true], ['vc4', false, ['arm', 'aarch64'].contains(host_machine.cpu_family())], ['etnaviv', true, false], ]Signature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v2 23/23 meson: build etnaviv by default
In reply to Eric Engestrom--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
@@ -80,7 +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, false], + ['etnaviv', true, true], ] driver = d[0] require_atomics = d[1]
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH libdrm v2 23/23] meson: build etnaviv by default
Please CC the etnaviv maintainers on this as well.
I think this should be ['arm', 'aarch64']... like vc4 and fredreno
Quoting Eric Engestrom (2018-04-04 08:38:18)
Quoted 22 lines
Signed-off-by Eric Engestrom <[email protected]>--- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meson.build +1
-1@@ -80,7 +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, false], + ['etnaviv', true, true], ] driver = d[0] require_atomics = d[1]Signature · 2 lines
Cheers, Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel