hardware/intel/libva
Revision | 2162a793560a02651b3da00bb663f519742bc3fc (tree) |
---|---|
Time | 2009-08-14 23:21:34 |
Author | Gwenole Beauchesne <gbeauchesne@spli...> |
Commiter | Austin Yuan |
Explicit API extensions versioning from SDS.
Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
@@ -28,6 +28,9 @@ m4_define([libva_micro_version], [4]) | ||
28 | 28 | m4_define([libva_version], |
29 | 29 | [libva_major_version.libva_minor_version.libva_micro_version]) |
30 | 30 | |
31 | +# increase this number for each API change | |
32 | +m4_define([libva_sds_version], [2]) | |
33 | + | |
31 | 34 | # if the library source code has changed, increment revision |
32 | 35 | m4_define([libva_lt_revision], [0]) |
33 | 36 | # if any interface was added/removed/changed, then inc current, reset revision |
@@ -52,11 +55,14 @@ AC_SUBST(LIBVA_MINOR_VERSION) | ||
52 | 55 | AC_SUBST(LIBVA_MICRO_VERSION) |
53 | 56 | AC_SUBST(LIBVA_VERSION) |
54 | 57 | |
58 | +LIBVA_SDS_VERSION=libva_sds_version | |
59 | +AC_SUBST(LIBVA_SDS_VERSION) | |
60 | + | |
55 | 61 | LIBVA_LT_CURRENT=libva_lt_current |
56 | 62 | LIBVA_LT_REV=libva_lt_revision |
57 | 63 | LIBVA_LT_AGE=libva_lt_age |
58 | 64 | LIBVA_LT_VERSION="$LIBVA_LT_CURRENT:$LIBVA_LT_REV:$LIBVA_LT_AGE" |
59 | -LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION -release $LIBVA_VERSION" | |
65 | +LIBVA_LT_LDFLAGS="-version-info $LIBVA_LT_VERSION -release $LIBVA_VERSION.$LIBVA_SDS_VERSION" | |
60 | 66 | AC_SUBST(LIBVA_LT_VERSION) |
61 | 67 | AC_SUBST(LIBVA_LT_LDFLAGS) |
62 | 68 |
@@ -40,6 +40,7 @@ | ||
40 | 40 | |
41 | 41 | |
42 | 42 | #define DRIVER_INIT_FUNC "__vaDriverInit_0_30" |
43 | +#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_30_sds" | |
43 | 44 | |
44 | 45 | #define DRIVER_EXTENSION "_drv_video.so" |
45 | 46 |
@@ -166,6 +167,11 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name) | ||
166 | 167 | init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC); |
167 | 168 | if (!init_func) |
168 | 169 | { |
170 | + /* Then try SDS extensions (VDPAU and XvBA backends) */ | |
171 | + init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC_SDS); | |
172 | + } | |
173 | + if (!init_func) | |
174 | + { | |
169 | 175 | va_errorMessage("%s has no function %s\n", driver_path, DRIVER_INIT_FUNC); |
170 | 176 | dlclose(handle); |
171 | 177 | } |
@@ -47,6 +47,13 @@ | ||
47 | 47 | #define VA_MICRO_VERSION (@LIBVA_MICRO_VERSION@) |
48 | 48 | |
49 | 49 | /** |
50 | + * VA_SDS_VERSION: | |
51 | + * | |
52 | + * The version of the SDS API extensions to the VA library | |
53 | + */ | |
54 | +#define VA_SDS_VERSION (@LIBVA_SDS_VERSION@) | |
55 | + | |
56 | +/** | |
50 | 57 | * VA_VERSION: |
51 | 58 | * |
52 | 59 | * The full version of the VA library, like 1.2.3 |
@@ -59,7 +66,7 @@ | ||
59 | 66 | * The full version of the VA library, in string form (suited for |
60 | 67 | * string concatenation) |
61 | 68 | */ |
62 | -#define VA_VERSION_S "@LIBVA_VERSION@" | |
69 | +#define VA_VERSION_S "@LIBVA_VERSION@-sds@LIBVA_SDS_VERSION@" | |
63 | 70 | |
64 | 71 | /** |
65 | 72 | * VA_VERSION_HEX: |