[Freedreno] [PATCH 3/7] drm/msm: dpu: Consolodate atomic_check functions()
Jeykumar Sankaran
jsanka at codeaurora.org
Tue Sep 11 22:48:52 UTC 2018
On 2018-09-11 13:15, Sean Paul wrote:
> From: Sean Paul <seanpaul at chromium.org>
>
> dpu_plane_atomic_check() is a very thin wrapper around
> dpu_plane_sspp_atomic_check(). All it does is a NULL-check of
> state->fb,
> which is already done by drm_atomic_helper_check_plane_state().
> Further,
> the helper sets state->visible = false when this is true. So remove
> dpu_plane_atomic_check() and just use dpu_plane_sspp_atomic_check()
> directly.
>
> Signed-off-by: Sean Paul <seanpaul at chromium.org>
> ---
> drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 15 ++-------------
> 1 file changed, 2 insertions(+), 13 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> index 853902ac4fb9..7e894c8f69c3 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c
> @@ -1076,8 +1076,8 @@ static bool dpu_plane_validate_src(struct
> drm_rect
> *src,
> drm_rect_equals(fb_rect, src);
> }
>
> -static int dpu_plane_sspp_atomic_check(struct drm_plane *plane,
> - struct drm_plane_state *state)
> +static int dpu_plane_atomic_check(struct drm_plane *plane,
> + struct drm_plane_state *state)
> {
> int ret = 0, min_scale;
> struct dpu_plane *pdpu = to_dpu_plane(plane);
> @@ -1155,17 +1155,6 @@ static int dpu_plane_sspp_atomic_check(struct
> drm_plane *plane,
> return ret;
> }
>
> -static int dpu_plane_atomic_check(struct drm_plane *plane,
> - struct drm_plane_state *state)
> -{
> - if (!state->fb)
> - return 0;
> -
> - DPU_DEBUG_PLANE(to_dpu_plane(plane), "\n");
> -
> - return dpu_plane_sspp_atomic_check(plane, state);
> -}
> -
> void dpu_plane_flush(struct drm_plane *plane)
> {
> struct dpu_plane *pdpu;
Subject line typo:
%s/Consolodate/Consolidate
Reviewed-by: Jeykumar Sankaran <jsanka at codeaurora.org>
--
Jeykumar S
More information about the Freedreno
mailing list