• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

hardware/intel/libva


Commit MetaInfo

Révision4f1b4898eb71b07397095fb22122182bc4f7191d (tree)
l'heure2009-07-08 18:42:05
AuteurGwenole Beauchesne <gbeauchesne@spli...>
CommiterAustin Yuan

Message de Log

Install drivers into pkglibdir/va/.

Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>

Change Summary

Modification

--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,13 @@ AM_INIT_AUTOMAKE([dist-bzip2])
2727
2828 AM_CONFIG_HEADER([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/i965_drv_video/Makefile.am
+++ b/i965_drv_video/Makefile.am
@@ -25,7 +25,7 @@ SUBDIRS = shaders
2525 AM_CFLAGS = -Wall -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 @DRM_CFLAGS@ -DIN_LIBVA
2626
2727 i965_drv_video_la_LTLIBRARIES = i965_drv_video.la
28-i965_drv_video_ladir = $(libdir)/dri
28+i965_drv_video_ladir = @LIBVA_DRIVERS_PATH@
2929 i965_drv_video_la_LDFLAGS = -module -avoid-version -no-undefined -Wl,--no-undefined @DRM_LIBS@ -ldrm_intel
3030 i965_drv_video_la_LIBADD = ../src/libva.la -lpthread
3131
--- 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) -I$(top_srcdir)/src/x11 \
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
@@ -47,7 +47,6 @@
4747 #define VA_MINOR_VERSION 30
4848 #define DRIVER_INIT_FUNC "__vaDriverInit_0_30"
4949
50-#define DEFAULT_DRIVER_DIR "/usr/lib/dri/"
5150 #define DRIVER_EXTENSION "_drv_video.so"
5251
5352 #define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
@@ -153,7 +152,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
153152 }
154153 if (!search_path)
155154 {
156- search_path = DEFAULT_DRIVER_DIR;
155+ search_path = VA_DRIVERS_PATH;
157156 }
158157
159158 search_path = strdup((const char *)search_path);