Commit 6900ce35 authored by Austin Yuan's avatar Austin Yuan

Merge branch 'master-fd.o'

parents a5f3e054 8c14a97b
...@@ -30,17 +30,12 @@ if BUILD_I965_DRIVER ...@@ -30,17 +30,12 @@ if BUILD_I965_DRIVER
SUBDIRS += i965_drv_video SUBDIRS += i965_drv_video
endif endif
pcfiles = \ pcfiles = libva.pc
libva.pc \ pcfiles += libva-x11.pc
libva-$(LIBVA_DISPLAY).pc
# libva-<display>.pc - for display-specific dependencies
libva-$(LIBVA_DISPLAY).pc: libva_display.pc
@cp $< $@
pkgconfigdir = @pkgconfigdir@ pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = $(pcfiles) pkgconfig_DATA = $(pcfiles)
EXTRA_DIST = libva.pc.in libva_display.pc.in EXTRA_DIST = libva.pc.in libva-x11.pc.in
CLEANFILES = $(pcfiles) CLEANFILES = $(pcfiles)
...@@ -28,9 +28,6 @@ m4_define([libva_micro_version], [0]) ...@@ -28,9 +28,6 @@ m4_define([libva_micro_version], [0])
m4_define([libva_version], m4_define([libva_version],
[libva_major_version.libva_minor_version.libva_micro_version]) [libva_major_version.libva_minor_version.libva_micro_version])
# increase this number for each API change
m4_define([libva_sds_version], [2])
# if the library source code has changed, increment revision # if the library source code has changed, increment revision
m4_define([libva_lt_revision], [0]) m4_define([libva_lt_revision], [0])
# if any interface was added/removed/changed, then inc current, reset revision # if any interface was added/removed/changed, then inc current, reset revision
...@@ -55,9 +52,6 @@ AC_SUBST(LIBVA_MINOR_VERSION) ...@@ -55,9 +52,6 @@ AC_SUBST(LIBVA_MINOR_VERSION)
AC_SUBST(LIBVA_MICRO_VERSION) AC_SUBST(LIBVA_MICRO_VERSION)
AC_SUBST(LIBVA_VERSION) AC_SUBST(LIBVA_VERSION)
LIBVA_SDS_VERSION=libva_sds_version
AC_SUBST(LIBVA_SDS_VERSION)
LIBVA_LT_CURRENT=libva_lt_current LIBVA_LT_CURRENT=libva_lt_current
LIBVA_LT_REV=libva_lt_revision LIBVA_LT_REV=libva_lt_revision
LIBVA_LT_AGE=libva_lt_age LIBVA_LT_AGE=libva_lt_age
...@@ -119,7 +113,6 @@ libvacorelib=libva.la ...@@ -119,7 +113,6 @@ libvacorelib=libva.la
libvabackendlib=libva-$LIBVA_DISPLAY.la libvabackendlib=libva-$LIBVA_DISPLAY.la
AC_SUBST([libvacorelib]) AC_SUBST([libvacorelib])
AC_SUBST([libvabackendlib]) AC_SUBST([libvabackendlib])
AC_SUBST(LIBVA_DISPLAY)
AC_OUTPUT([ AC_OUTPUT([
Makefile Makefile
...@@ -134,6 +127,6 @@ AC_OUTPUT([ ...@@ -134,6 +127,6 @@ AC_OUTPUT([
i965_drv_video/shaders/render/Makefile i965_drv_video/shaders/render/Makefile
test/Makefile test/Makefile
libva.pc libva.pc
libva_display.pc libva-x11.pc
]) ])
...@@ -2,7 +2,7 @@ prefix=@prefix@ ...@@ -2,7 +2,7 @@ prefix=@prefix@
exec_prefix=@exec_prefix@ exec_prefix=@exec_prefix@
libdir=@libdir@ libdir=@libdir@
includedir=@includedir@ includedir=@includedir@
display=@LIBVA_DISPLAY@ display=x11
Name: libva-${display} Name: libva-${display}
Description: Userspace Video Acceleration (VA) ${display} interface Description: Userspace Video Acceleration (VA) ${display} interface
......
...@@ -39,7 +39,7 @@ libva_la_LIBADD = $(LIBVA_LIBS) -ldl ...@@ -39,7 +39,7 @@ libva_la_LIBADD = $(LIBVA_LIBS) -ldl
libva_x11_la_SOURCES = libva_x11_la_SOURCES =
libva_x11_la_LIBADD = $(libvacorelib) x11/libva_x11.la $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(DRM_LIBS) $(XFIXES_LIBS) libva_x11_la_LIBADD = $(libvacorelib) x11/libva_x11.la $(LIBVA_LIBS) $(X11_LIBS) $(XEXT_LIBS) $(DRM_LIBS) $(XFIXES_LIBS)
libva_x11_la_LDFLAGS = $(LDADD) libva_x11_la_LDFLAGS = $(LDADD)
libva_x11_la_DEPENDENCIES = $(libvacorelib) libva_x11_la_DEPENDENCIES = $(libvacorelib) x11/libva_x11.la
SUBDIRS = x11 SUBDIRS = x11
......
...@@ -40,7 +40,6 @@ ...@@ -40,7 +40,6 @@
#define DRIVER_INIT_FUNC "__vaDriverInit_0_31" #define DRIVER_INIT_FUNC "__vaDriverInit_0_31"
#define DRIVER_INIT_FUNC_SDS "__vaDriverInit_0_31_sds"
#define DRIVER_EXTENSION "_drv_video.so" #define DRIVER_EXTENSION "_drv_video.so"
...@@ -170,11 +169,6 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name) ...@@ -170,11 +169,6 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
VADriverInit init_func; VADriverInit init_func;
init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC); init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC);
if (!init_func) if (!init_func)
{
/* Then try SDS extensions (VDPAU and XvBA backends) */
init_func = (VADriverInit) dlsym(handle, DRIVER_INIT_FUNC_SDS);
}
if (!init_func)
{ {
va_errorMessage("%s has no function %s\n", driver_path, DRIVER_INIT_FUNC); va_errorMessage("%s has no function %s\n", driver_path, DRIVER_INIT_FUNC);
dlclose(handle); dlclose(handle);
...@@ -317,6 +311,8 @@ const char *vaErrorStr(VAStatus error_status) ...@@ -317,6 +311,8 @@ const char *vaErrorStr(VAStatus error_status)
return "invalid parameter"; return "invalid parameter";
case VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED: case VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED:
return "resolution not supported"; return "resolution not supported";
case VA_STATUS_ERROR_UNIMPLEMENTED:
return "the requested function is not implemented";
case VA_STATUS_ERROR_UNKNOWN: case VA_STATUS_ERROR_UNKNOWN:
return "unknown libva error"; return "unknown libva error";
} }
......
...@@ -377,9 +377,16 @@ Bool VA_NVCTRLGetClientDriverName( Display *dpy, int screen, ...@@ -377,9 +377,16 @@ Bool VA_NVCTRLGetClientDriverName( Display *dpy, int screen,
*ddxDriverMajorVersion = v; *ddxDriverMajorVersion = v;
if (*(str = end) == '.') { if (*(str = end) == '.') {
v = strtoul(str + 1, &end, 10); v = strtoul(str + 1, &end, 10);
if (end && end != str && *end == '\0') { if (end && end != str && (*end == '.' || *end == '\0')) {
if (ddxDriverMinorVersion) if (ddxDriverMinorVersion)
*ddxDriverMinorVersion = v; *ddxDriverMinorVersion = v;
if (*(str = end) == '.') {
v = strtoul(str + 1, &end, 10);
if (end && end != str && *end == '\0') {
if (ddxDriverPatchVersion)
*ddxDriverPatchVersion = v;
}
}
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment