drm/atomic: Loosen FB atomic checks
authorJessica Zhang <quic_jesszhan@quicinc.com>
Fri, 27 Oct 2023 22:32:57 +0000 (15:32 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 1 Dec 2023 23:56:55 +0000 (01:56 +0200)
commitf1e75da5364e780905d9cd6043f9c74cdcf84073
tree0cb8076f9f77e28ebb6692b7473bb909d7dc7070
parent4ba6b7a646321e740c7f2d80c90505019c4e8fce
drm/atomic: Loosen FB atomic checks

Loosen the requirements for atomic and legacy commit so that, in cases
where pixel_source != FB, the commit can still go through.

This includes adding framebuffer NULL checks in other areas to account for
FB being NULL when non-FB pixel sources are enabled.

To disable a plane, the pixel_source must be NONE or the FB must be NULL
if pixel_source == FB.

Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231027-solid-fill-v7-7-780188bfa7b2@quicinc.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic_helper.h
include/drm/drm_plane.h