From 36b92e809f378e18af980ffa5b29361bd28098cb Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 22 Apr 2017 13:45:18 +0100 Subject: igt: Import basic amdgpu tests from libdrm Simple copy and replace of the CUnit tests inside libdrm to form a basis for further prime integration testing. Signed-off-by: Chris Wilson --- configure.ac | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 12b0ab0e..5342e33c 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,18 @@ AC_SUBST([DRM_LIBS]) AM_CONDITIONAL(HAVE_LIBDRM_INTEL, [test "x$INTEL" = xyes]) +AC_ARG_ENABLE(amdgpu, AS_HELP_STRING([--disable-amdgpu], + [Enable building of amdgpu tests (default: auto)]), + [AMDGPU=$enableval], [AMDGPU=auto]) +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]) + AC_DEFINE(HAVE_LIBDRM_AMDGPU, 1, [Have amdgpu support]) +fi +AM_CONDITIONAL(HAVE_LIBDRM_AMDGPU, [test "x$AMDGPU" = xyes]) + # for dma-buf tests AC_ARG_ENABLE(nouveau, AS_HELP_STRING([--disable-nouveau], [Enable use of nouveau API for prime tests (default: auto)]), -- cgit v1.2.3