backends/drm: don't permanently disable VRR when the test commit fails

In 5.24, the same code path is used for testing direct scanout, so that
causes false negatives. Generally though, the user setting shouldn't be
touched, it's not really proper feedback for the driver or KWin having
problems.
This commit is contained in:
Xaver Hugl 2022-04-08 17:47:09 +02:00
parent b495faf98d
commit 2ef6215a51

View file

@ -317,7 +317,6 @@ bool DrmOutput::present()
m_pipeline->applyPendingChanges();
} else {
m_pipeline->revertPendingChanges();
setVrrPolicy(RenderLoop::VrrPolicy::Never);
}
}
bool modeset = gpu()->needsModeset();