[PATCH i-g-t] configure.ac: Make AMDGPU depend on libdrm >= 2.4.76

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

 



AMDGPU_FAMILY_AI was introduced in commit being part of libdrm 2.4.76
release and amd_basic tests are using that define.

Since the module is turned on by default this results in compilation
failing on machines with older libdrm.

Let make them fail on ./configure step instead.

Cc: Leo Liu <leo.liu@xxxxxxx>
Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
Reported-by: Martin Peres <martin.peres@xxxxxxxxx>
Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@xxxxxxxxx>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 0418e60..bf09927 100644
--- a/configure.ac
+++ b/configure.ac
@@ -217,7 +217,7 @@ if test "x$AMDGPU" = xauto; then
 	PKG_CHECK_EXISTS([libdrm_amdgpu], [AMDGPU=yes], [AMDGPU=no])
 fi
 if test "x$AMDGPU" = xyes; then
-	PKG_CHECK_MODULES(DRM_AMDGPU, [libdrm_amdgpu])
+	PKG_CHECK_MODULES(DRM_AMDGPU, [libdrm_amdgpu >= 2.4.76])
 	AC_DEFINE(HAVE_LIBDRM_AMDGPU, 1, [Have amdgpu support])
 fi
 AM_CONDITIONAL(HAVE_LIBDRM_AMDGPU, [test "x$AMDGPU" = xyes])
-- 
2.9.4

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux