drm: reject double-pf commits only with a buffer or when modesetting

This commit is contained in:
Vaxry 2024-06-26 23:21:02 +02:00
parent 25ee42673f
commit 461d33583a

View file

@ -1008,7 +1008,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 (!BLOCKING && connector->isPageFlipPending) { if ((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;
} }