From d90533b8ad75da75b029df2ee596179607ea5170 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Thu, 16 Feb 2023 17:45:35 +0200 Subject: [PATCH] backend-drm/drm-virtual: Hang off the drm_backend This is needed by drm_output_fini_egl() to be able to retrieve the backend out of the drm_output on the shutdown path of the compositor. Both the remoting plug-in and the pipewire plug-in are users of the drm-virtual API and as such they would trigger a crash when shutting down the compositor, as we're not setting up any backend whatsoever. Signed-off-by: Marius Vlad --- libweston/backend-drm/drm-virtual.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/backend-drm/drm-virtual.c b/libweston/backend-drm/drm-virtual.c index 38f8a0b6..fc228e5d 100644 --- a/libweston/backend-drm/drm-virtual.c +++ b/libweston/backend-drm/drm-virtual.c @@ -375,6 +375,7 @@ drm_virtual_output_create(struct weston_compositor *c, char *name, output->base.disable = drm_virtual_output_disable; output->base.attach_head = NULL; + output->backend = b; output->state_cur = drm_output_state_alloc(output, NULL); weston_compositor_add_pending_output(&output->base, c);