egl: remove flatten HAVE_SHARED_GLAPI
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 13 Jul 2015 21:20:38 +0000 (22:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 22 Jul 2015 15:35:26 +0000 (16:35 +0100)
It is simply not possible to use the dri backend without shared glapi,
as the alternative provider (libGL) is not always present. We have fixed
the build for a while now, so we can rip this out.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/egl/drivers/dri2/Android.mk
src/egl/drivers/dri2/Makefile.am
src/egl/drivers/dri2/egl_dri2.c

index 109e4d4a0d84855b4ebb5f9b6a2966e50de3fc59..76be3b246ba70e362acade686f6586e496e36c39 100644 (file)
@@ -32,7 +32,6 @@ LOCAL_SRC_FILES := \
        platform_android.c
 
 LOCAL_CFLAGS := \
-       -DHAVE_SHARED_GLAPI \
        -DHAVE_ANDROID_PLATFORM
 
 ifeq ($(MESA_LOLLIPOP_BUILD),true)
index f4649de18dfd580d3af4ec4d4bd20160c3fa4026..b59360de123d2fa735572bafb535e2a2abd4f1e1 100644 (file)
@@ -44,10 +44,6 @@ libegl_dri2_la_LIBADD = \
        $(top_builddir)/src/loader/libloader.la \
        $(EGL_LIB_DEPS)
 
-if HAVE_SHARED_GLAPI
-AM_CFLAGS += -DHAVE_SHARED_GLAPI
-endif
-
 if HAVE_EGL_PLATFORM_X11
 libegl_dri2_la_SOURCES += platform_x11.c
 AM_CFLAGS += -DHAVE_X11_PLATFORM
index 65194cb990cef07e493a7381e4204e9c1f9c323c..5600e8212d08d544961e9b5eeaa2e86ccef993dc 100644 (file)
@@ -2365,20 +2365,12 @@ static EGLBoolean
 dri2_load(_EGLDriver *drv)
 {
    struct dri2_egl_driver *dri2_drv = dri2_egl_driver(drv);
-#ifdef HAVE_SHARED_GLAPI
 #ifdef HAVE_ANDROID_PLATFORM
    const char *libname = "libglapi.so";
 #elif defined(__APPLE__)
    const char *libname = "libglapi.0.dylib";
 #else
    const char *libname = "libglapi.so.0";
-#endif
-#else
-   /*
-    * Both libGL.so and libglapi.so are glapi providers.  There is no way to
-    * tell which one to load.
-    */
-   const char *libname = NULL;
 #endif
    void *handle;