From 41d842669bea9f2a0490a5936ac49d8516df86d9 Mon Sep 17 00:00:00 2001 From: Colt-M16A1 <31347585+Colt-M16A1@users.noreply.github.com> Date: Wed, 21 Aug 2024 22:36:34 +0300 Subject: [PATCH] drm: request page flip events after commit (#60) Apparently fixes stuff. --- src/backend/drm/DRM.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index f23b53f..54d8ee8 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -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