summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRen, Zhaohan <zhaohan.ren@intel.com>2009-03-26 03:20:31 +0800
committerRen, Zhaohan <zhaohan.ren@intel.com>2009-03-26 03:20:31 +0800
commitadac1a519de44803b0cdfff29829508cdd419a01 (patch)
treeb78120a19828e04bae6482bf5655fcbd0b933403 /src
parentaf4671aa8c68c3f2c107d9fddf197e560fccf3e2 (diff)
downloadlibva-adac1a519de44803b0cdfff29829508cdd419a01.tar.gz
patch 108_drivers_path.patch
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am3
-rw-r--r--src/va.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 06aeaff..83d75e6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,7 +22,8 @@
INCLUDES = \
$(LIBVA_CFLAGS) \
- -DIN_LIBVA
+ -DIN_LIBVA \
+ -DVA_DRIVERS_PATH="\"$(LIBVA_DRIVERS_PATH)\""
libva_la_LTLIBRARIES = libva.la
libva_ladir = $(libdir)
diff --git a/src/va.c b/src/va.c
index 1f6b1fe..c8de749 100644
--- a/src/va.c
+++ b/src/va.c
@@ -36,7 +36,7 @@
#define VA_MINOR_VERSION 30
#define DRIVER_INIT_FUNC "__vaDriverInit_0_30"
-#define DEFAULT_DRIVER_DIR "/usr/lib/dri/"
+#define DEFAULT_DRIVER_DIR "/usr/X11R6/lib/modules/dri"
#define DRIVER_EXTENSION "_drv_video.so"
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
@@ -128,7 +128,7 @@ static VAStatus va_openDriver(VADisplay dpy, char *driver_name)
}
if (!search_path)
{
- search_path = DEFAULT_DRIVER_DIR;
+ search_path = VA_DRIVERS_PATH;
}
search_path = strdup(search_path);