From 0925a500d1b4709a6058b2d1174a5aab90a5e34e Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Mon, 12 Jun 2023 20:30:09 -0400 Subject: [PATCH] wlr_scene: Don't use direct scanout if trying to commit a new render_format Found by inspection. --- types/scene/wlr_scene.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index b4d16056..f640d505 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1484,7 +1484,9 @@ static bool scene_buffer_can_consider_direct_scanout(struct wlr_scene_buffer *bu return false; } - if (state->committed & (WLR_OUTPUT_STATE_MODE | WLR_OUTPUT_STATE_ENABLED)) { + if (state->committed & (WLR_OUTPUT_STATE_MODE | + WLR_OUTPUT_STATE_ENABLED | + WLR_OUTPUT_STATE_RENDER_FORMAT)) { // Legacy DRM will explode if we try to modeset with a direct scanout buffer return false; }