From 6bd6ad9d59bc2a4447324ae9ffd5648d670ca7ce Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Fri, 25 Feb 2022 18:12:47 +0100 Subject: [PATCH] backends/drm: let DrmGpu handle mode changes Doing a test is not sufficient for mode changes BUG: 450804 --- src/backends/drm/drm_output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_output.cpp b/src/backends/drm/drm_output.cpp index 662e25ab88..f128adf2b3 100644 --- a/src/backends/drm/drm_output.cpp +++ b/src/backends/drm/drm_output.cpp @@ -307,7 +307,7 @@ void DrmOutput::updateModes() if (currentMode != m_pipeline->pending.mode) { // DrmConnector::findCurrentMode might fail m_pipeline->pending.mode = currentMode ? currentMode : m_pipeline->connector()->modes().constFirst(); - if (DrmPipeline::commitPipelines(m_gpu->pipelines(), DrmPipeline::CommitMode::Test)) { + if (m_gpu->testPendingConfiguration(DrmGpu::TestMode::TestWithCrtcReallocation)) { m_pipeline->applyPendingChanges(); setCurrentModeInternal(m_pipeline->pending.mode->size(), m_pipeline->pending.mode->refreshRate()); m_renderLoop->setRefreshRate(m_pipeline->pending.mode->refreshRate());