|
|
@ -92,10 +92,7 @@ static bool add_plane(struct wlr_drm_backend *drm,
|
|
|
|
struct wlr_drm_crtc *crtc, drmModePlane *drm_plane,
|
|
|
|
struct wlr_drm_crtc *crtc, drmModePlane *drm_plane,
|
|
|
|
uint32_t type, union wlr_drm_plane_props *props) {
|
|
|
|
uint32_t type, union wlr_drm_plane_props *props) {
|
|
|
|
assert(!(type == DRM_PLANE_TYPE_PRIMARY && crtc->primary));
|
|
|
|
assert(!(type == DRM_PLANE_TYPE_PRIMARY && crtc->primary));
|
|
|
|
|
|
|
|
assert(!(type == DRM_PLANE_TYPE_CURSOR && crtc->cursor));
|
|
|
|
if (type == DRM_PLANE_TYPE_CURSOR && crtc->cursor) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct wlr_drm_plane *p = calloc(1, sizeof(*p));
|
|
|
|
struct wlr_drm_plane *p = calloc(1, sizeof(*p));
|
|
|
|
if (!p) {
|
|
|
|
if (!p) {
|
|
|
|