Review Request 115934: [kinfocenter] Make GLX and EGL not mutual exclusive
Martin Gräßlin
mgraesslin at kde.org
Mon Mar 3 14:29:49 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115934/
-----------------------------------------------------------
(Updated March 3, 2014, 2:29 p.m.)
Status
------
This change has been marked as submitted.
Review request for Plasma and David Stephen Hubner.
Repository: kde-workspace
Description
-------
[kinfocenter] Make GLX and EGL not mutual exclusive
GLX and EGL can both be used at the same time. What cannot be used
is OpenGL and OpenGLES at the same time. In the complete detection
code there is only one GLES specific include and one function call.
Everything else is just EGL specific. Thus it is nice to get the
information about GLX and EGL at the same time.
The compile time switches are reworked to have a KCM_HAVE_GLX which
is defined to 1 in case that we build for OpenGL (GLX is no-no if
we build for OpenGLES) and a KCM_HAVE_EGL if EGL library is found.
This can be used in both cases.
All the code which used to be ifdefed for OpenGL specific becomes
ifdefed for GLX specific and all the code specific for OpenGLES
becomes EGL specific with the exception of the eglBindAPI which
still needs to be in the GLES ifdef.
The detection code is split into two methods: one for GLX and one
for EGL and both are run depending on which defines are set.
As a slight unrelated change the name "OpenGL/ES" is split via
ifdefs in "OpenGL" and "OpenGL ES". The cases are clearly different
and that should be reflected in the UI and not mixed together.
[kinfocenter] Do not tie OpenGL config to KWin
Depend on how Qt is configured, not how KWin is configured. KWin
doesn't matter anymore as it uses the Qt configuration itself.
Diffs
-----
kinfocenter/Modules/CMakeLists.txt e885835f2f75b791d36ecc4c5a411c120fdda117
kinfocenter/Modules/opengl/CMakeLists.txt d049094fe0e798ea7ff128dbaf93c0ebc0bdba72
kinfocenter/Modules/opengl/opengl.cpp 601337f071452eca7a3add127e8e1ff1586bbef0
kinfocenter/Modules/opengl/openglconfig.h.cmake bd8f4716e1d653a143b12040d89979639f112d6f
Diff: https://git.reviewboard.kde.org/r/115934/diff/
Testing
-------
Only tested with my Mesa powered system. Would be nice if someone with a proprietary driver could also test this.
File Attachments
----------------
KInfocenter with both EGL and GLX
https://git.reviewboard.kde.org/media/uploaded/files/2014/02/21/12d45359-157a-4a18-a2d5-7e3c33a60fe7__kinfocenter-egl-glx.png
Thanks,
Martin Gräßlin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140303/8903f67c/attachment.html>
More information about the Plasma-devel
mailing list