diff options
author | Yuxuan Shui <yshuiv7@gmail.com> | 2020-08-26 19:01:53 +0100 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-11-12 16:39:47 +0000 |
commit | 53660e4c4ed315d4b2fe5d921861fbfebf2bbe42 (patch) | |
tree | 2ad34a130fb1b7b1abe1dcc4bcd8783315565768 /include | |
parent | 8bb1a75b4f0af2d27d92c14ae94dd03c78e98960 (diff) |
Add EGL xcb platform
This enables GL applications to be written without any involvement of
Xlib.
EGL X11 platform is actually already xcb-only underneath, so this commit
just add the necessary interface changes so eglDisplay can be created
from a xcb_connection_t.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6474>
Diffstat (limited to 'include')
-rw-r--r-- | include/EGL/eglext.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h index a1e5e946899..a911e40c933 100644 --- a/include/EGL/eglext.h +++ b/include/EGL/eglext.h @@ -883,6 +883,12 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6 #endif /* EGL_EXT_platform_x11 */ +#ifndef EGL_MESA_platform_xcb +#define EGL_MESA_platform_xcb 1 +#define EGL_PLATFORM_XCB_EXT 0x31DC +#define EGL_PLATFORM_XCB_SCREEN_EXT 0x31DE +#endif /* EGL_MESA_platform_xcb */ + #ifndef EGL_EXT_protected_content #define EGL_EXT_protected_content 1 #define EGL_PROTECTED_CONTENT_EXT 0x32C0 |