From kde-panel-devel Tue May 30 09:30:21 2017 From: Oleg Chernovskiy Date: Tue, 30 May 2017 09:30:21 +0000 To: kde-panel-devel Subject: D1230: GBM remote access support for KWin Message-Id: <20170530093020.84211.F95E7989BD57235B () phabricator ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=149613663122484 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--7b9879e4221649fe8a0599f90e951e0d" --7b9879e4221649fe8a0599f90e951e0d Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 Kanedias added inline comments. INLINE COMMENTS > davidedmundson wrote in drm_buffer.cpp:131 > If it's deferred it means someone else is doing the gbm_surface_release. > > But we still need to set m_bo to nullptr. Otherwise it's potentially left dangling here after the RemoteAccessManager has deleted it. > > (Alternately: if we changed DrmObjectPlane to store the buffers as QSharedPointers we could just keep a reference to the DrmBuffer in the RemoteAccessManager, which would be IMHO cleaner than doing low level GBM stuff there and having the data released in one of two places. I'll look into that) I rewrote this part since this change and it doesn't touch buffers now, if you want to take a look at it prior to my resubmission, it's there: https://gitlab.com/Kanedias/kwin/commit/9535f36bd09f8834be3773f25bf2075a720ba1c4 > davidedmundson wrote in remoteaccess_manager.h:49-50 > what's this signal for? Forgot to get rid of it, thanks REPOSITORY R108 KWin REVISION DETAIL https://phabricator.kde.org/D1230 To: Kanedias, graesslin, davidedmundson Cc: davidedmundson, plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas --7b9879e4221649fe8a0599f90e951e0d Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="ascii" Mime-Version: 1.0 View Revision=
Kanedias added inline comments.

INLINE COMMENTS

If it's deferred it means someone else is do= ing the gbm_surface_release.

But we still need to set m_bo to null= ptr. Otherwise it's potentially left dangling here after the RemoteAcc= essManager has deleted it.

(Alternately: if we changed DrmObject= Plane to store the buffers as QSharedPointers we could just keep a referenc= e to the DrmBuffer in the RemoteAccessManager, which would be IMHO cleaner = than doing low level GBM stuff there and having the data released in one of= two places. I'll look into that)

I rewrote this part since this change and it doesn't touch b= uffers now, if you want to take a look at it prior to my resubmission, it&#= 039;s there:

https://gitlab.com/Kanedias/kwin/= commit/9535f36bd09f8834be3773f25bf2075a720ba1c4


View Inlinedavidedmundson wrote in remoteaccess_manager.h:49-50

what's this signal for?

Forgot to get rid of it, thanks

=
REPOSITORY
R108 KWin
=
REVISION DETAIL
https://phabricator.kde.org/D1230=

To: Kanedias, graesslin, davidedmun= dson
Cc: davidedmundson, plasma-devel, ZrenBot, spsta= rr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol= , mart, lukas
--7b9879e4221649fe8a0599f90e951e0d--