Skip to content
Commit 0edcc9e5 authored by Michael Olbrich's avatar Michael Olbrich Committed by Daniel Stone
Browse files

backend-drm: don't try to commit an empty state



With multiple DRM devices, the state for one device may be empty during
repaint_flush(). This can happen for example if an output of one device triggers
the repaint and there are no screens attached to the other device and therefore
no active outputs.

The atomic commit will actually fail because the commit contains the
DRM_MODE_PAGE_FLIP_EVENT flag but no CRTCs.

Avoid this by skipping the commit entirly. There is nothing to to anyways.

Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent 183d92e2
Loading
Loading
Loading
Pipeline #835655 passed with stages
in 1 minute and 44 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment