• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

修订版adac1a519de44803b0cdfff29829508cdd419a01 (tree)
时间2009-03-26 04:20:31
作者Ren, Zhaohan <zhaohan.ren@inte...>
CommiterRen, Zhaohan

Log Message

patch 108_drivers_path.patch

更改概述

差异

--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,13 @@ AM_INIT_AUTOMAKE([dist-bzip2])
2727
2828 AM_CONFIG_HEADER([src/config.h])
2929
30+AC_ARG_WITH(drivers-path,
31+ [AC_HELP_STRING([--with-drivers-path=[[path]]], [drivers path])],,
32+ [with_drivers_path="$libdir/va/drivers"])
33+
34+LIBVA_DRIVERS_PATH="$with_drivers_path"
35+AC_SUBST(LIBVA_DRIVERS_PATH)
36+
3037 AC_DISABLE_STATIC
3138 AC_PROG_LIBTOOL
3239 AC_PROG_CC
--- a/dummy_drv_video/Makefile.am
+++ b/dummy_drv_video/Makefile.am
@@ -21,7 +21,7 @@
2121 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2222
2323 dummy_drv_video_la_LTLIBRARIES = dummy_drv_video.la
24-dummy_drv_video_ladir = /usr/lib/dri
24+dummy_drv_video_ladir = @LIBVA_DRIVERS_PATH@
2525 dummy_drv_video_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,--no-undefined
2626 dummy_drv_video_la_LIBADD = ../src/libva.la
2727
--- a/libva.pc.in
+++ b/libva.pc.in
@@ -2,6 +2,7 @@ prefix=@prefix@
22 exec_prefix=@exec_prefix@
33 libdir=@libdir@
44 includedir=@includedir@
5+driverdir=@LIBVA_DRIVERS_PATH@
56
67 Name: libva
78 Description: Userspace Video Acceleration (VA) core interface
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,7 +22,8 @@
2222
2323 INCLUDES = \
2424 $(LIBVA_CFLAGS) \
25- -DIN_LIBVA
25+ -DIN_LIBVA \
26+ -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\""
2627
2728 libva_la_LTLIBRARIES = libva.la
2829 libva_ladir = $(libdir)
--- a/src/va.c
+++ b/src/va.c
@@ -36,7 +36,7 @@
3636 #define VA_MINOR_VERSION 30
3737 #define DRIVER_INIT_FUNC "__vaDriverInit_0_30"
3838
39-#define DEFAULT_DRIVER_DIR "/usr/lib/dri/"
39+#define DEFAULT_DRIVER_DIR "/usr/X11R6/lib/modules/dri"
4040 #define DRIVER_EXTENSION "_drv_video.so"
4141
4242 #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
@@ -128,7 +128,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
128128 }
129129 if (!search_path)
130130 {
131- search_path = DEFAULT_DRIVER_DIR;
131+ search_path = VA_DRIVERS_PATH;
132132 }
133133
134134 search_path = strdup(search_path);