dummy_drv_video: add back VA_DRIVER_INIT_FUNC definition for __vaDriverInit_*()
authorVincent Bernat <bernat@luffy.cx>
Thu, 13 Jun 2013 06:20:05 +0000 (08:20 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 27 Jun 2013 01:14:08 +0000 (09:14 +0800)
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@luffy.cx>
configure.ac

index 470a510..4b77d4f 100644 (file)
@@ -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