summaryrefslogtreecommitdiffstats
path: root/src/egl/main/egldriver.h
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2017-08-28 11:23:58 -0400
committerAdam Jackson <[email protected]>2017-10-05 13:43:34 -0400
commitb174a1ae720cb404738cd57c431f5769d677957d (patch)
treea8dc8f91976382a93d387cc1d8247cdbf0a1b9c5 /src/egl/main/egldriver.h
parent15e208c4ccdd94582a459d0066b587f91caf270c (diff)
egl: Simplify the "driver" interface
"Driver" isn't a great word for what this layer is, it's effectively a build-time choice about what OS you're targeting. Despite that both of the extant backends totally ignore the display argument, the old code would only set up the backend relative to a display. That causes problems! One problem is it means eglGetProcAddress can generate X or Wayland protocol when it tries to connect to a default display so it can call into the backend, which is, you know, completely bonkers. Any other EGL API that doesn't reference a display, like EGL_EXT_device_query, would have the same issue. Fortunately this is a problem that can be solved with the delete key. Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/egl/main/egldriver.h')
-rw-r--r--src/egl/main/egldriver.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
index 1cf6628446b..a8b0cab2b1a 100644
--- a/src/egl/main/egldriver.h
+++ b/src/egl/main/egldriver.h
@@ -91,12 +91,8 @@ struct _egl_driver
};
-extern _EGLDriver *
-_eglBuiltInDriverDRI2(const char *args);
-
-
extern _EGLDriver*
-_eglBuiltInDriverHaiku(const char* args);
+_eglBuiltInDriver(void);
extern _EGLDriver *