[PATCH libdrm v2 10/23] meson: use simple option handling for radeon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Eric Engestrom <eric.engestrom@xxxxxxxxxx>
---
 meson.build | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/meson.build b/meson.build
index 12cf96157b2789df3a55..035ac8cf2f1130d0b799 100644
--- a/meson.build
+++ b/meson.build
@@ -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'
-- 
Cheers,
  Eric

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux