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:
Leandro Ribeiro 2022-05-30 18:08:51 -03:00
parent 8fc9d68ffa
commit 0251c05212

View File

@ -349,7 +349,9 @@ dmabuf_feedback_maybe_update(struct drm_device *device, struct weston_view *ev,
const time_t MAX_TIME_SECONDS = 2; const time_t MAX_TIME_SECONDS = 2;
/* Find out what we need to do with the dma-buf feedback */ /* 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; action_needed |= ACTION_NEEDED_REMOVE_SCANOUT_TRANCHE;
if (try_view_on_plane_failure_reasons & if (try_view_on_plane_failure_reasons &
(FAILURE_REASONS_ADD_FB_FAILED | (FAILURE_REASONS_ADD_FB_FAILED |