Skip to content

Commit

Permalink
drm: request page flip events after commit (#60)
Browse files Browse the repository at this point in the history
Apparently fixes stuff.
  • Loading branch information
Colt-M16A1 authored Aug 21, 2024
1 parent 1c32562 commit 41d8426
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 41d8426

Please sign in to comment.