[platforms/drm] Delete buffer on all errors in present
ClosedPublic

Authored by romangg on Jul 12 2017, 9:22 PM.

Details

Summary

I got lots of error messages with the error fixed in D6659 about failed locking of front buffer. The reason was that it returned early in DrmOutput::present() because of the missing logind active state, and KWin didn't delete the buffer when doing this, therefore not releasing the surface lock of the GBM buffer to the EGL surface. This patch makes sure that on any error in present we cleanup the proposed DrmBuffer.

Diff Detail

Repository
R108 KWin
Lint
Lint Skipped
Unit
Unit Tests Skipped
romangg created this revision.Jul 12 2017, 9:22 PM
Restricted Application added a subscriber: kwin. · View Herald TranscriptJul 12 2017, 9:22 PM
graesslin accepted this revision.Jul 13 2017, 4:52 PM
This revision is now accepted and ready to land.Jul 13 2017, 4:52 PM
This revision was automatically updated to reflect the committed changes.