backend-drm: remove scanout tranche when there are no planes available
It makes no sense to keep the scanout tranche on the dma-buf feedback if there are no overlay planes available. So start to remove it. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
8fc9d68ffa
commit
0251c05212
@ -349,7 +349,9 @@ dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
|
||||
const time_t MAX_TIME_SECONDS = 2;
|
||||
|
||||
/* Find out what we need to do with the dma-buf feedback */
|
||||
if (try_view_on_plane_failure_reasons & FAILURE_REASONS_FORCE_RENDERER)
|
||||
if (try_view_on_plane_failure_reasons &
|
||||
(FAILURE_REASONS_FORCE_RENDERER |
|
||||
FAILURE_REASONS_NO_PLANES_AVAILABLE))
|
||||
action_needed |= ACTION_NEEDED_REMOVE_SCANOUT_TRANCHE;
|
||||
if (try_view_on_plane_failure_reasons &
|
||||
(FAILURE_REASONS_ADD_FB_FAILED |
|
||||
|
Loading…
Reference in New Issue
Block a user