Commit 0ef5ddfd authored by Chaojiang Luo's avatar Chaojiang Luo
Browse files

[drm] Do not blank crtc in atomic mode



In atomic setting mode, when external display tears down, it will blank
crtc with dump buffer by legacy api, then re-plug the external display,
the blank can not be removed. We think the blank is not needed in atomic
mode setting.
Signed-off-by: Chaojiang Luo's avatarChaojiang Luo <chaojiangluo@163.com>
parent 617650d4
......@@ -91,6 +91,11 @@ bool DrmCrtc::blank()
if (!m_output) {
return false;
}
if (m_backend->atomicModeSetting()) {
return false;
}
if (!m_blackBuffer) {
DrmDumbBuffer *blackBuffer = m_backend->createBuffer(m_output->pixelSize());
if (!blackBuffer->map()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment