gbm: remove gbm_gallium_drm from the loader
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Mar 2015 17:45:26 +0000 (17:45 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Mar 2015 20:49:31 +0000 (20:49 +0000)
No longer used as of commit 48c7461d5a0(st/gbm: remove state-tracker)

v2: Add commit message.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> (v1)
src/gbm/main/backend.c

index aceb6621f96fc0b8a9105b5d325d72e27274086d..4929d732b446c9cb194b3caa6f456e1f19326feb 100644 (file)
@@ -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;