aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-03-14 22:36:28 +0000
committerEmil Velikov <[email protected]>2015-03-21 17:16:41 +0000
commit0d6e7620f35331be301ec3177c0d9236838a845b (patch)
treeb04e8bcecf7a837df9d035fdbde7dc9ce070f9ab /src
parent65a8d4d6ddbed8fd47cd4efc38d4a344add5ec5a (diff)
egl/main: drop platform fbdev specific code
st/egl was the only one which had support for this platform. Signed-off-by: Emil Velikov <[email protected]> Acked-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/egl/main/Makefile.am4
-rw-r--r--src/egl/main/egldisplay.c16
-rw-r--r--src/egl/main/egldisplay.h1
3 files changed, 0 insertions, 21 deletions
diff --git a/src/egl/main/Makefile.am b/src/egl/main/Makefile.am
index a4db21016e9..893ad266bfe 100644
--- a/src/egl/main/Makefile.am
+++ b/src/egl/main/Makefile.am
@@ -65,10 +65,6 @@ AM_CFLAGS += -DHAVE_DRM_PLATFORM
libEGL_la_LIBADD += ../../gbm/libgbm.la
endif
-if HAVE_EGL_PLATFORM_FBDEV
-AM_CFLAGS += -DHAVE_FBDEV_PLATFORM
-endif
-
if HAVE_EGL_PLATFORM_NULL
AM_CFLAGS += -DHAVE_NULL_PLATFORM
endif
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index b7a5b8fb9d9..a3ecba8c41e 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -56,11 +56,6 @@
#ifdef HAVE_DRM_PLATFORM
#include <gbm.h>
#endif
-#ifdef HAVE_FBDEV_PLATFORM
-#include <stdint.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#endif
/**
@@ -74,7 +69,6 @@ static const struct {
{ _EGL_PLATFORM_X11, "x11" },
{ _EGL_PLATFORM_WAYLAND, "wayland" },
{ _EGL_PLATFORM_DRM, "drm" },
- { _EGL_PLATFORM_FBDEV, "fbdev" },
{ _EGL_PLATFORM_NULL, "null" },
{ _EGL_PLATFORM_ANDROID, "android" },
{ _EGL_PLATFORM_HAIKU, "haiku" }
@@ -144,19 +138,9 @@ _eglPointerIsDereferencable(void *p)
static _EGLPlatformType
_eglNativePlatformDetectNativeDisplay(void *nativeDisplay)
{
-#ifdef HAVE_FBDEV_PLATFORM
- struct stat buf;
-#endif
-
if (nativeDisplay == EGL_DEFAULT_DISPLAY)
return _EGL_INVALID_PLATFORM;
-#ifdef HAVE_FBDEV_PLATFORM
- /* fbdev is the only platform that can be a file descriptor. */
- if (fstat((intptr_t) nativeDisplay, &buf) == 0 && S_ISCHR(buf.st_mode))
- return _EGL_PLATFORM_FBDEV;
-#endif
-
if (_eglPointerIsDereferencable(nativeDisplay)) {
void *first_pointer = *(void **) nativeDisplay;
diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h
index 5a845d89962..f8782f917c0 100644
--- a/src/egl/main/egldisplay.h
+++ b/src/egl/main/egldisplay.h
@@ -44,7 +44,6 @@ enum _egl_platform_type {
_EGL_PLATFORM_X11,
_EGL_PLATFORM_WAYLAND,
_EGL_PLATFORM_DRM,
- _EGL_PLATFORM_FBDEV,
_EGL_PLATFORM_NULL,
_EGL_PLATFORM_ANDROID,
_EGL_PLATFORM_HAIKU,