From c91cf30154041b44357872787ce5e2a62fa342c1 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Fri, 21 Dec 2018 12:48:22 +0200 Subject: [PATCH] compositor-drm: Forgot to use mode variable when using render only mode of composition In patch 5d767416c1847 we simplified a bit the way in which the compositing mode was being printed with the purpose to improve weston-debug. It seems we forgot to use the mode when RENDER-only mode is being used, so this patch fixes that. Signed-off-by: Marius Vlad --- libweston/compositor-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index d001711d..c23a6913 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -3818,7 +3818,7 @@ drm_assign_planes(struct weston_output *output_base, void *repaint_data) if (!state) { mode = DRM_OUTPUT_PROPOSE_STATE_RENDERER_ONLY; state = drm_output_propose_state(output_base, pending_state, - DRM_OUTPUT_PROPOSE_STATE_RENDERER_ONLY); + mode); } assert(state);