[PATCH libdrm 15/23] meson: use simple option handling for amdgpu

Eric Engestrom eric.engestrom at imgtec.com
Tue Mar 20 17:46:51 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 fc38685b59045988b149..08685debfc28894424cf 100644
--- a/meson.build
+++ b/meson.build
@@ -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'
-- 
Cheers,
  Eric



More information about the dri-devel mailing list