<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/D2135" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>If it's not possible to create a buffer to blank the output, KWin won't<br />
be able to render to the output. In that case the output should not be<br />
added to the list of outputs.</p>
<p>To support this DrmOutput::blank and DrmOutput::init return bool to<br />
indicate whether they succeeded. DrmBackend handles this situation and<br />
doesn't add the output to the list of outputs if init failed.</p>
<p>If after init there are no outputs KWin is in a state where it won't<br />
be functional. Thus the platform emits the initFailed signal to<br />
terminate.</p>
<p>BUG: 365242<br />
FIXED-IN: 5.7.1</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>No hardware to reproduce the condition</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rKWIN KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>drm-failed-blank-5.7</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D2135" rel="noreferrer">https://phabricator.kde.org/D2135</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/platforms/drm/drm_backend.cpp<br />
plugins/platforms/drm/drm_output.cpp<br />
plugins/platforms/drm/drm_output.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>