[PATCH libdrm 03/23] meson: don't enable libdrm_amdgpu without atomic support

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

 



In the 'auto' case, the `with_atomic` check was bypassed.

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

diff --git a/meson.build b/meson.build
index 72cdd14a3ba834abde4d..4bc088bacdd8120c1508 100644
--- a/meson.build
+++ b/meson.build
@@ -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
-- 
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