drm: request page flip events after commit (#60)

Apparently fixes stuff.
This commit is contained in:
Colt-M16A1 2024-08-21 22:36:34 +03:00 committed by GitHub
parent 1c3256287c
commit 41d842669b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1470,10 +1470,8 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
if (STATE.enabled && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER))
flags |= DRM_MODE_PAGE_FLIP_EVENT;
if (STATE.presentationMode == AQ_OUTPUT_PRESENTATION_IMMEDIATE && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) {
if (STATE.presentationMode == AQ_OUTPUT_PRESENTATION_IMMEDIATE && (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER))
flags |= DRM_MODE_PAGE_FLIP_ASYNC;
flags &= ~DRM_MODE_PAGE_FLIP_EVENT; // Do not request an event for immediate page flips, as it makes no sense.
}
}
// we can't go further without a blit