Skip to content

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

Michael Olbrich requested to merge mol/weston:drm-empty into main

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: Michael Olbrich m.olbrich@pengutronix.de

Merge request reports