drm: allow disabling commit, even if pageFlipPending (#72)

This commit is contained in:
Ikalco 2024-09-01 12:48:15 -05:00 committed by GitHub
parent f8a687dd29
commit dd9890d2bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1465,7 +1465,7 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Disabling output {}", name)); backend->backend->log(AQ_LOG_DEBUG, std::format("drm: Disabling output {}", name));
} }
if ((NEEDS_RECONFIG || (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) && connector->isPageFlipPending) { if (STATE.enabled && (NEEDS_RECONFIG || (COMMITTED & COutputState::eOutputStateProperties::AQ_OUTPUT_STATE_BUFFER)) && connector->isPageFlipPending) {
backend->backend->log(AQ_LOG_ERROR, "drm: Cannot commit when a page-flip is awaiting"); backend->backend->log(AQ_LOG_ERROR, "drm: Cannot commit when a page-flip is awaiting");
return false; return false;
} }