Mesa (master): g3dvl: check for existense of VA API header/libs

Christian König deathsimple at kemper.freedesktop.org
Thu Jul 14 13:38:57 UTC 2011


Module: Mesa
Branch: master
Commit: 8619aa5683eb16c12a1b2eaeab2378855791ec8c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8619aa5683eb16c12a1b2eaeab2378855791ec8c

Author: Christian König <deathsimple at vodafone.de>
Date:   Thu Jul 14 14:09:25 2011 +0200

g3dvl: check for existense of VA API header/libs

Building the VA state tracker only works when the header/libs are available.
Also add a warning that the state tracker is currently undmaintained.

---

 configure.ac |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 75b9510..74144ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1519,6 +1519,8 @@ if test "x$enable_gallium_g3dvl" = xyes; then
     fi
 
     if test "x$enable_va" = xauto; then
+	#don't enable vaapi state tracker even if package exists
+	#PKG_CHECK_EXISTS([libva], [enable_vdpau=yes], [enable_vdpau=no])
         enable_va=no
     fi
 fi
@@ -1535,8 +1537,9 @@ if test "x$enable_vdpau" = xyes; then
     HAVE_ST_VDPAU="yes"
 fi
 
-#TODO: Check for va libs/headers
 if test "x$enable_va" = xyes; then
+    PKG_CHECK_MODULES([LIBVA], [libva = 0.31.1])
+    AC_MSG_WARN([vaapi state tracker currently unmaintained])
     GALLIUM_STATE_TRACKERS_DIRS="$GALLIUM_STATE_TRACKERS_DIRS va"
     HAVE_ST_VA="yes"
 fi




More information about the mesa-commit mailing list