[vlc-devel] [RFC PATCH 3/8] configure: add more vaapi checks

Thomas Guillem thomas at gllm.fr
Fri Feb 10 11:35:57 CET 2017


Maybe VA_EGL is not needed (since vaGetEGLClientBufferFromSurface doesn't seem
to work).
---
 configure.ac | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/configure.ac b/configure.ac
index c62a5ae02a..57939a46ba 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2349,7 +2349,10 @@ AS_IF([test "${enable_libva}" = "yes" -a "${have_avcodec}" != "yes" ], [
 
 have_vaapi="no"
 have_vaapi_drm="no"
+have_vaapi_egl="no"
 have_vaapi_x11="no"
+have_vaapi_glx="no"
+have_vaapi_wl="no"
 AS_IF([test "${enable_libva}" != "no"], [
   PKG_CHECK_MODULES([LIBVA], [libva >= 0.37], [
     have_vaapi="yes"
@@ -2365,14 +2368,33 @@ AS_IF([test "${enable_libva}" != "no"], [
   ], [
     AC_MSG_WARN([${LIBVA_DRM_PKG_ERRORS}.])
   ])
+  PKG_CHECK_MODULES(LIBVA_EGL, [libva-egl], [
+    have_vaapi_egl="yes"
+  ], [
+    AC_MSG_WARN([${LIBVA_EGL_PKG_ERRORS}.])
+  ])
   PKG_CHECK_MODULES(LIBVA_X11, [libva-x11], [
     have_vaapi_x11="yes"
   ], [
     AC_MSG_WARN([${LIBVA_X11_PKG_ERRORS}.])
   ])
+  PKG_CHECK_MODULES(LIBVA_GLX, [libva-glx], [
+    have_vaapi_glx="yes"
+  ], [
+    AC_MSG_WARN([${LIBVA_GLX_PKG_ERRORS}.])
+  ])
+  PKG_CHECK_MODULES(LIBVA_WL, [libva-wayland], [
+    have_vaapi_wl="yes"
+  ], [
+    AC_MSG_WARN([${LIBVA_WL_PKG_ERRORS}.])
+  ])
 ])
+AM_CONDITIONAL([HAVE_VAAPI], [test "${have_vaapi}" = "yes"])
 AM_CONDITIONAL([HAVE_VAAPI_DRM], [test "${have_vaapi_drm}" = "yes"])
+AM_CONDITIONAL([HAVE_VAAPI_EGL], [test "${have_vaapi_egl}" = "yes"])
 AM_CONDITIONAL([HAVE_VAAPI_X11], [test "${have_vaapi_x11}" = "yes"])
+AM_CONDITIONAL([HAVE_VAAPI_GLX], [test "${have_vaapi_glx}" = "yes"])
+AM_CONDITIONAL([HAVE_VAAPI_WL], [test "${have_vaapi_wl}" = "yes"])
 
 have_avcodec_vaapi="no"
 AS_IF([test "${have_vaapi}" = "yes" -a "${have_avcodec}" = "yes"], [
-- 
2.11.0



More information about the vlc-devel mailing list