summaryrefslogtreecommitdiff
path: root/src/gbm
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/gbm
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/gbm')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 19be440d48..53e590855b 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -354,15 +354,6 @@ dri_open_driver(struct gbm_dri_device *dri)
/* not need continue to loop all paths once the driver is found */
if (dri->driver != NULL)
break;
-
-#ifdef ANDROID
- snprintf(path, sizeof path, "%.*s/gallium_dri.so", len, p);
- dri->driver = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
- if (dri->driver == NULL)
- sprintf("failed to open %s: %s\n", path, dlerror());
- else
- break;
-#endif
}
if (dri->driver == NULL) {