diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-24 12:31:20 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-24 12:31:20 +0100 |
commit | c011a0e2eddec18c9f7381e79fc1983eb2e5a3c9 (patch) | |
tree | ce479d3b3fa7d5a04a27d7c16fcf655e5c6aaa8f /backend | |
parent | 5548406667e03b9b314b1b9a4592912834442167 (diff) |
backend/drm: add special case for cursor in add_plane
The code calling add_plane now makes sure not to add a cursor plane to a
CRTC which already has one.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index a9cfc066..7303bbd6 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -92,10 +92,7 @@ static bool add_plane(struct wlr_drm_backend *drm, struct wlr_drm_crtc *crtc, drmModePlane *drm_plane, uint32_t type, union wlr_drm_plane_props *props) { assert(!(type == DRM_PLANE_TYPE_PRIMARY && crtc->primary)); - - if (type == DRM_PLANE_TYPE_CURSOR && crtc->cursor) { - return true; - } + assert(!(type == DRM_PLANE_TYPE_CURSOR && crtc->cursor)); struct wlr_drm_plane *p = calloc(1, sizeof(*p)); if (!p) { |