diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-06-12 20:30:09 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-06-12 20:30:09 -0400 |
commit | 0925a500d1b4709a6058b2d1174a5aab90a5e34e (patch) | |
tree | 3db6216f56a1ba6d50afd5e1408a72e24337f3a8 | |
parent | ac426c0c2469cb0b3297f95c8508a052705bdf4a (diff) |
wlr_scene: Don't use direct scanout if trying to commit a new render_format
Found by inspection.
-rw-r--r-- | types/scene/wlr_scene.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |