Along with async flip if there is a request to disable a sync plane by
providing a NULL fb allow them.

Signed-off-by: Arun R Murthy <[email protected]>
---
 drivers/gpu/drm/drm_atomic.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 
fc938ea467e239edd6be77b7467c45ac8c8379fd..f0718a26e441ec1c9e118503936cb597211835e9
 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -718,7 +718,9 @@ static int drm_atomic_plane_async_check(const struct 
drm_plane_state *old_plane_
        struct drm_crtc *crtc = new_plane_state->crtc;
        struct drm_crtc_state *new_crtc_state = crtc->state;
 
-       if (!new_plane_state->async_flip)
+       if (new_crtc_state->async_flip && new_plane_state->fb == 0)
+               return 0;
+       else if (!new_plane_state->async_flip && !new_crtc_state->async_flip)
                return 0;
 
        /*

-- 
2.25.1

Reply via email to