backends/drm: let DrmGpu handle mode changes

Doing a test is not sufficient for mode changes

BUG: 450804
This commit is contained in:
Xaver Hugl 2022-02-25 18:12:47 +01:00
parent 907cf72bb0
commit 6bd6ad9d59

View file

@ -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());