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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user