public inbox for linux-arm-msm@vger.kernel.org
 help / color / mirror / Atom feed
From: ryadav-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org
To: Sean Paul <seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	abhinavk-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	jsanka-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org,
	freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org,
	hoegsberg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org
Subject: Re: [DPU PATCH 1/2] drm/msm: dpu: Remove dpu_format_populate_layout_with_roi()
Date: Mon, 25 Jun 2018 12:02:41 +0530	[thread overview]
Message-ID: <77fab1a35da567645876df114ea862bc@codeaurora.org> (raw)
In-Reply-To: <20180621190239.196436-1-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>

On 2018-06-22 00:32, Sean Paul wrote:
> It's unused, so let's get rid of it.
> 
> Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Rajesh Yadav <ryadav@codeaurora.org>
> ---
>  drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 31 ---------------------
>  drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h | 16 -----------
>  2 files changed, 47 deletions(-)
> 
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
> index deaf4a33b776..12dc6a9d3b25 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c
> @@ -1124,37 +1124,6 @@ static void
> _dpu_format_calc_offset_linear(struct dpu_hw_fmt_layout *source,
>  	}
>  }
> 
> -int dpu_format_populate_layout_with_roi(
> -		struct msm_gem_address_space *aspace,
> -		struct drm_framebuffer *fb,
> -		struct dpu_rect *roi,
> -		struct dpu_hw_fmt_layout *layout)
> -{
> -	int ret;
> -
> -	ret = dpu_format_populate_layout(aspace, fb, layout);
> -	if (ret || !roi)
> -		return ret;
> -
> -	if (!roi->w || !roi->h || (roi->x + roi->w > fb->width) ||
> -			(roi->y + roi->h > fb->height)) {
> -		DRM_ERROR("invalid roi=[%d,%d,%d,%d], fb=[%u,%u]\n",
> -				roi->x, roi->y, roi->w, roi->h,
> -				fb->width, fb->height);
> -		ret = -EINVAL;
> -	} else if (DPU_FORMAT_IS_LINEAR(layout->format)) {
> -		_dpu_format_calc_offset_linear(layout, roi->x, roi->y);
> -		layout->width = roi->w;
> -		layout->height = roi->h;
> -	} else if (roi->x || roi->y || (roi->w != fb->width) ||
> -			(roi->h != fb->height)) {
> -		DRM_ERROR("non-linear layout with roi not supported\n");
> -		ret = -EINVAL;
> -	}
> -
> -	return ret;
> -}
> -
>  int dpu_format_check_modified_format(
>  		const struct msm_kms *kms,
>  		const struct msm_format *msm_fmt,
> diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
> b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
> index 6aa91de93cac..b55bfd13e296 100644
> --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
> +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h
> @@ -115,22 +115,6 @@ int dpu_format_populate_layout(
>  		struct drm_framebuffer *fb,
>  		struct dpu_hw_fmt_layout *fmtl);
> 
> -/**
> - * dpu_format_populate_layout_with_roi - populate the given format 
> layout
> - *                     based on mmu, fb, roi, and format found in the 
> fb
> - * @aspace:            address space pointer
> - * @fb:                framebuffer pointer
> - * @roi:               region of interest (optional)
> - * @fmtl:              format layout structure to populate
> - *
> - * Return: error code on failure, 0 on success
> - */
> -int dpu_format_populate_layout_with_roi(
> -		struct msm_gem_address_space *aspace,
> -		struct drm_framebuffer *fb,
> -		struct dpu_rect *roi,
> -		struct dpu_hw_fmt_layout *fmtl);
> -
>  /**
>   * dpu_format_get_framebuffer_size - get framebuffer memory size
>   * @format:            DRM pixel format
_______________________________________________
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno

      parent reply	other threads:[~2018-06-25  6:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-21 19:02 [DPU PATCH 1/2] drm/msm: dpu: Remove dpu_format_populate_layout_with_roi() Sean Paul
     [not found] ` <20180621190239.196436-1-seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2018-06-21 19:02   ` [DPU PATCH 2/2] drm/msm: dpu: Remove dpu_rect Sean Paul
2018-06-25  6:32   ` ryadav-sgV2jX0FEOL9JmXXK+q4OQ [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77fab1a35da567645876df114ea862bc@codeaurora.org \
    --to=ryadav-sgv2jx0feol9jmxxk+q4oq@public.gmane.org \
    --cc=abhinavk-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=hoegsberg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    --cc=jsanka-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
    --cc=linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=seanpaul-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox