From 2dc8ba961c8c1397c65c67fa7d816112a6193b28 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 17 Jul 2024 23:13:39 +0200 Subject: [PATCH] drm: accept mgpu tests early to avoid a blit --- src/backend/drm/DRM.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index f90967d..a3db54e 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1336,6 +1336,10 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) { flags |= DRM_MODE_PAGE_FLIP_ASYNC; } + // we can't go further without a blit + if (backend->primary && onlyTest) + return true; + SDRMConnectorCommitData data; if (STATE.buffer) {