aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 40a1fdbf..7fd36794 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -133,7 +133,10 @@ static bool init_planes(struct wlr_drm_backend *drm) {
rgb_format = fmt;
}
}
- if (rgb_format == DRM_FORMAT_INVALID) {
+ // Some overlays exist which don't support XRGB8888/ARGB8888
+ // We aren't even using overlay planes currently, so don't fail
+ // on something unnecessary.
+ if (type != DRM_PLANE_TYPE_OVERLAY && rgb_format == DRM_FORMAT_INVALID) {
wlr_log(WLR_ERROR, "Failed to find an RGB format for plane %zu", i);
drmModeFreePlane(plane);
goto error_planes;