[Mesa-dev] [RFC 2/7] eglplatform.h: introduce EGL_USE_PLATFORM_XCB_KHR

Emil Velikov emil.l.velikov at gmail.com
Thu Sep 22 08:38:07 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

There is no concept of display on XCB thus the connection is used
instead.

---
XXX: Pure XCB/Xlib-free implementation anyone ?
---
 include/EGL/eglplatform.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 923b5f6..bb8bb95 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -111,6 +111,13 @@ typedef HDC     EGLNativeDisplayType;
 typedef HBITMAP EGLNativePixmapType;
 typedef HWND    EGLNativeWindowType;
 
+#elif defined(EGL_USE_PLATFORM_XCB_KHR)
+#include <xcb/xcb.h>
+
+typedef xcb_connection_t *EGLNativeDisplayType;
+typedef xcb_pixmap_t      EGLNativePixmapType;
+typedef xcb_window_t      EGLNativeWindowType;
+
 #elif defined(EGL_USE_PLATFORM_XLIB_KHR)
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
-- 
2.9.3



More information about the mesa-dev mailing list