[Mesa-dev] [PATCH 10/11] egl_dri2: Export dri2_get_driver_for_fd

Benjamin Franzke benjaminfranzke at googlemail.com
Fri Feb 4 08:31:24 PST 2011


---
 src/egl/drivers/dri2/egl_dri2.h     |    3 +++
 src/egl/drivers/dri2/platform_drm.c |    2 +-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h
index 2212404..f65319d 100644
--- a/src/egl/drivers/dri2/egl_dri2.h
+++ b/src/egl/drivers/dri2/egl_dri2.h
@@ -136,4 +136,7 @@ dri2_initialize_x11(_EGLDriver *drv, _EGLDisplay *disp);
 EGLBoolean
 dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp);
 
+char *
+dri2_get_driver_for_fd(int fd);
+
 #endif /* EGL_DRI2_INCLUDED */
diff --git a/src/egl/drivers/dri2/platform_drm.c b/src/egl/drivers/dri2/platform_drm.c
index 12ab1e0..431bfa0 100644
--- a/src/egl/drivers/dri2/platform_drm.c
+++ b/src/egl/drivers/dri2/platform_drm.c
@@ -567,7 +567,7 @@ const struct dri2_driver_map driver_map[] = {
    { 0x1002, "r600", r600_chip_ids, ARRAY_SIZE(r600_chip_ids) },
 };
 
-static char *
+char *
 dri2_get_driver_for_fd(int fd)
 {
    struct udev *udev;
-- 
1.7.3.4



More information about the mesa-dev mailing list