Skip to content

backends/native: Fall back to compositing if direct scanout failed

Even when a direct client buffer has a compatible format, stride and modifier for direct scanout, drmModePageFlip() may still fail sometimes.

From testing, it has been observed that it may seemingly randomly fail with ENOSPC, where all subsequent attempts later on the same CRTC failing with EBUSY.

Handle this by falling back to flipping after having composited a full frame again.

Closes: #1410 (closed)

Merge request reports