kwin/plugins/platforms/drm
Vlad Zahorodnii 6b2e6cfd53 Prevent EGL headers from including Xlib headers
One of the annoying things about EGL headers is that they include
platform headers by default, e.g. on X11, it's Xlib.h, etc.

The problem with Xlib.h is that it uses the define compiler directive to
declare constants and those constants have very generic names, e.g.
'None', which typically conflict with enums, etc.

In order to work around bad things coming from Xlib.h, we include
fixx11.h file that contains some workarounds to redefine some Xlib's
types.

There's a flag or rather two flags (EGL_NO_PLATFORM_SPECIFIC_TYPES and
EGL_NO_X11) that are cross-vendor and they can be used to prevent EGL
headers from including platform specific headers, such as Xlib.h [1]

The benefit of setting those two flags is that you can simply include
EGL/egl.h or epoxy/egl.h and the world won't explode due to Xlib.h

MESA_EGL_NO_X11_HEADERS is set to support older versions of Mesa.

[1] https://github.com/KhronosGroup/EGL-Registry/pull/111
2020-12-10 11:15:06 +02:00
..
abstract_egl_drm_backend.cpp Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
abstract_egl_drm_backend.h Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
CMakeLists.txt Create egl backend for multiple backends and enable multi-gpu usage for the gbm backend 2020-11-28 17:53:41 +00:00
drm.json
drm_backend.cpp Introduce Platform::{outputEnabled,outputDisabled} signals 2020-12-09 17:44:00 +00:00
drm_backend.h Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_buffer.cpp
drm_buffer.h
drm_buffer_gbm.cpp Create egl backend for multiple backends and enable multi-gpu usage for the gbm backend 2020-11-28 17:53:41 +00:00
drm_buffer_gbm.h Create egl backend for multiple backends and enable multi-gpu usage for the gbm backend 2020-11-28 17:53:41 +00:00
drm_gpu.cpp Fix crash in eglTerminate() 2020-12-02 15:32:02 +00:00
drm_gpu.h Prevent EGL headers from including Xlib headers 2020-12-10 11:15:06 +02:00
drm_inputeventfilter.cpp Prefer function pointer to slot string 2020-11-07 02:56:44 +01:00
drm_inputeventfilter.h
drm_object.cpp Detect some DrmConnector properties and ignore non-desktop displays 2020-10-25 19:18:06 +00:00
drm_object.h Detect some DrmConnector properties and ignore non-desktop displays 2020-10-25 19:18:06 +00:00
drm_object_connector.cpp Detect some DrmConnector properties and ignore non-desktop displays 2020-10-25 19:18:06 +00:00
drm_object_connector.h Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_object_crtc.cpp
drm_object_crtc.h Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_object_plane.cpp
drm_object_plane.h
drm_output.cpp Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_output.h Trim trailing whitespace 2020-11-28 11:01:47 +00:00
drm_pointer.h
edid.cpp wayland: Make sure EDID are being fed to wayland outputs 2020-10-29 14:57:50 +00:00
edid.h wayland: Make sure EDID are being fed to wayland outputs 2020-10-29 14:57:50 +00:00
egl_gbm_backend.cpp platforms/drm: Properly clean up the shadow framebuffer object 2020-12-02 16:05:08 +00:00
egl_gbm_backend.h Small refactor in the drm backends 2020-12-01 16:58:24 +00:00
egl_multi_backend.cpp Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
egl_multi_backend.h Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
egl_stream_backend.cpp Small refactor in the drm backends 2020-12-01 16:58:24 +00:00
egl_stream_backend.h Small refactor in the drm backends 2020-12-01 16:58:24 +00:00
gbm_dmabuf.cpp
gbm_dmabuf.h
gbm_surface.cpp
gbm_surface.h
logging.cpp
logging.h
scene_qpainter_drm_backend.cpp Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
scene_qpainter_drm_backend.h Move Scene::isPerScreenRenderingEnabled() to Platform 2020-12-02 15:32:30 +00:00
screens_drm.cpp
screens_drm.h