summaryrefslogtreecommitdiff
path: root/src/egl
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2017-05-22 19:04:48 -0500
committerRob Herring <robh@kernel.org>2017-06-29 09:09:49 -0500
commita3d98ca62febdfbe035d655cb7c1f849bccfa105 (patch)
tree32cc3dfc003beb4715e1ad4eeb034d45582fc4fd /src/egl
parent4aaa21d12e1d7449a228e37ee3c502fbf159610a (diff)
Android: use symlinks for driver loading
Instead of having special driver loading logic for Android, create symlinks to gallium_dri.so so we can use the standard loading logic. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index f81bd3512d0..cf262427020 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -516,15 +516,6 @@ dri2_open_driver(_EGLDisplay *disp)
/* not need continue to loop all paths once the driver is found */
if (dri2_dpy->driver != NULL)
break;
-
-#ifdef ANDROID
- snprintf(path, sizeof path, "%.*s/gallium_dri.so", len, p);
- dri2_dpy->driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
- if (dri2_dpy->driver == NULL)
- _eglLog(_EGL_DEBUG, "failed to open %s: %s\n", path, dlerror());
- else
- break;
-#endif
}
if (dri2_dpy->driver == NULL) {