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>
This commit is contained in:
Yuxuan Shui
2020-08-26 19:01:53 +01:00
committed by Marge Bot
parent 8bb1a75b4f
commit 53660e4c4e
10 changed files with 67 additions and 4 deletions

View File

@@ -827,6 +827,7 @@ gl_pkgconfig_c_flags = []
if with_platform_x11
if with_any_vk or with_egl or (with_glx == 'dri' and with_dri_platform == 'drm')
pre_args += '-DHAVE_X11_PLATFORM'
pre_args += '-DHAVE_XCB_PLATFORM'
endif
if with_glx == 'xlib' or with_glx == 'gallium-xlib'
pre_args += '-DUSE_XSHM'