Review Request 115952: [kinfocenter] Add support for OpenGL running on Wayland

Martin Gräßlin mgraesslin at kde.org
Sat Feb 22 10:34:35 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115952/
-----------------------------------------------------------

Review request for Plasma and David Stephen Hubner.


Repository: kde-workspace


Description
-------

[kinfocenter] Add support for OpenGL running on Wayland

The X11 specific code is only executed on xcb platform. For detecting
OpenGL on Wayland we don't do the native calls ourself, but use Qt
functionality. We know that on Wayland Qt will use egl, so to simplify
we can just use an QOpenGLContext. That code would also work for xcb,
but Qt uses either glx or egl compile time switched, so it's easier to
just keep the existing and working glx and egl implementation for X11.

As Qt makes it easy to request both core and compatibility profile we
try all of that:
* normal (nothing specified)
* core
* compatibility

The X11 code should also be extended in that direction. Unfortunately
I couldn't test it as the mesa version I'm currently running is only
providing OpenGL 3.0.


Diffs
-----

  kinfocenter/Modules/opengl/opengl.cpp 601337f071452eca7a3add127e8e1ff1586bbef0 

Diff: https://git.reviewboard.kde.org/r/115952/diff/


Testing
-------


File Attachments
----------------

OpenGL module on Wayland
  https://git.reviewboard.kde.org/media/uploaded/files/2014/02/22/49469470-c14a-4b76-b476-e291497452df__kinfocenter-gl-wayland.png


Thanks,

Martin Gräßlin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140222/3edd981b/attachment.html>


More information about the Plasma-devel mailing list