summaryrefslogtreecommitdiffstats
path: root/src/gbm/main
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-03-21 17:45:26 +0000
committerEmil Velikov <[email protected]>2015-03-24 20:49:31 +0000
commit113d59fb557c377316904010ce88b9a87b4cc4d7 (patch)
tree83077dd7aba8a6235d01d2cbc07a89c13f17ee91 /src/gbm/main
parentd8208312a3a200b4e6d71ce533d835b2d705234a (diff)
gbm: remove gbm_gallium_drm from the loader
No longer used as of commit 48c7461d5a0(st/gbm: remove state-tracker) v2: Add commit message. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Kristian Høgsberg <[email protected]> (v1)
Diffstat (limited to 'src/gbm/main')
-rw-r--r--src/gbm/main/backend.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c
index aceb6621f96..4929d732b44 100644
--- a/src/gbm/main/backend.c
+++ b/src/gbm/main/backend.c
@@ -30,7 +30,6 @@
#include <stdlib.h>
#include <string.h>
#include <limits.h>
-#include <dlfcn.h>
#include "backend.h"
@@ -45,41 +44,18 @@ struct backend_desc {
static const struct backend_desc backends[] = {
{ "gbm_dri.so", &gbm_dri_backend },
- { "gbm_gallium_drm.so", NULL },
};
static const void *
load_backend(const struct backend_desc *backend)
{
- char path[PATH_MAX];
const void *init = NULL;
- void *module;
- const char *name;
- const char *entrypoint = "gbm_backend";
if (backend == NULL)
return NULL;
- name = backend->name;
-
if (backend->builtin) {
init = backend->builtin;
- } else {
- if (name[0] != '/')
- snprintf(path, sizeof path, MODULEDIR "/%s", name);
- else
- snprintf(path, sizeof path, "%s", name);
-
- module = dlopen(path, RTLD_NOW | RTLD_GLOBAL);
- if (!module) {
- fprintf(stderr,
- "failed to load module: %s\n", dlerror());
- return NULL;
- }
-
- init = dlsym(module, entrypoint);
- if (!init)
- return NULL;
}
return init;