<table><tr><td style="">graesslin created this revision.<br />graesslin added reviewers: KWin, Plasma on Wayland.<br />Restricted Application added subscribers: kwin, plasma-devel.<br />Restricted Application added projects: Plasma on Wayland, KWin.</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D2216" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The egl implementation for the virtual platform tries to use a render<br />
node if available. If there is no render node it looks for a virtual<br />
(kernel driver vgem) device, which unfortunately does not create a<br />
render node in mainline kernel (there are patches in ChromiumOS).</p>

<p>For this the Udev wrapper is extended to search for renderNode devices<br />
and for virtual dri devices.</p>

<p>If either render node or vgem dri device is found, it is tried to be<br />
opened (without logind escalation) and on success a gbm device is<br />
created on it. If any step of this fails the so far default behavior<br />
of default device is tried for creating the EGLDisplay.</p>

<p>All of this is compile optional, so that the virtual platform does not<br />
hard depend on udev and/or gbm.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Auto tests which need OpenGL executed and verified that they<br />
use the render node or vgem device.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>virtual-render-node-vgem</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2216" rel="noreferrer">https://phabricator.kde.org/D2216</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
config-kwin.h.cmake<br />
plugins/platforms/virtual/CMakeLists.txt<br />
plugins/platforms/virtual/egl_gbm_backend.cpp<br />
plugins/platforms/virtual/egl_gbm_backend.h<br />
udev.cpp<br />
udev.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma on Wayland<br /><strong>Cc: </strong>plasma-devel, kwin, hardening, jensreuterberg, abetts, sebas<br /></div>