[Libva] [PATCH] dummy_drv_video: add back VA_DRIVER_INIT_FUNC definition for __vaDriverInit_*()

Vincent Bernat bernat at luffy.cx
Wed Jun 12 23:20:05 PDT 2013


Since commit ca1798e77b6fa99dbb010f202a057f75415afd52, dummy driver
was defining VA_DRIVER_INIT_FUNC symbol instead of __vaDriverInit_0_33
and therefore cannot be used for testing anymore. We restore the
definition of this symbol in configure.ac.

Signed-off-by: Vincent Bernat <bernat at luffy.cx>
---
 configure.ac |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index ffe6920..31fe75f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -291,6 +291,11 @@ if test "$USE_DRM:$USE_X11:$USE_WAYLAND" = "no:no:no"; then
     AC_MSG_ERROR([Please select at least one backend (DRM, X11, Wayland)])
 fi
 
+# Define __vaDriverInit*() function name for dummy backend
+VA_DRIVER_INIT_FUNC="__vaDriverInit_${VA_API_MAJOR_VERSION}_${VA_API_MINOR_VERSION}"
+AC_DEFINE_UNQUOTED([VA_DRIVER_INIT_FUNC], [$VA_DRIVER_INIT_FUNC],
+    [Defined to the versioned __vaDriverInit function name])
+
 AC_OUTPUT([
     Makefile
     debian.upstream/Makefile
-- 
1.7.10.4



More information about the Libva mailing list