mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
wlr_scene: Don't use direct scanout if trying to commit a new render_format
Found by inspection.
This commit is contained in:
parent
ac426c0c24
commit
0925a500d1
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue