From: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
To: raviraj.p.sitaram@intel.com
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH v3] drm/i915: correct the pitch check for NV12 framebuffer
Date: Fri, 25 Jan 2019 23:34:28 +0200 [thread overview]
Message-ID: <20190125213428.GS20097@intel.com> (raw)
In-Reply-To: <1545208152-22658-1-git-send-email-raviraj.p.sitaram@intel.com>
On Wed, Dec 19, 2018 at 01:59:12PM +0530, raviraj.p.sitaram@intel.com wrote:
> From: P Raviraj Sitaram <raviraj.p.sitaram@intel.com>
>
> framebuffer for NV12 requires the pitch to the multiplier of 4, instead
> of the width. This patch corrects it.
>
> For instance, a 480p video, whose width and pitch are 854 and 896
> respectively, is excluded for NV12 plane so far.
>
> Changes since v1:
> - Removed check for NV12 buffer dimensions since additional checks
> are done for viewport size in intel_sprite.c
>
> Signed-off-by: Dongseong Hwang <dongseong.hwang@intel.com>
> Signed-off-by: P Raviraj Sitaram <raviraj.p.sitaram@intel.com>
> Cc: Chandra Konduru <chandra.konduru@intel.com>
> Cc: Vidya Srinivas <vidya.srinivas@intel.com>
> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
> Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
> ---
> drivers/gpu/drm/i915/intel_display.c | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 3b7094822aa9..fa349182d0da 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -14597,14 +14597,6 @@ static int intel_framebuffer_init(struct intel_framebuffer *intel_fb,
>
> drm_helper_mode_fill_fb_struct(&dev_priv->drm, fb, mode_cmd);
>
> - if (fb->format->format == DRM_FORMAT_NV12 &&
> - (fb->width < SKL_MIN_YUV_420_SRC_W ||
> - fb->height < SKL_MIN_YUV_420_SRC_H ||
> - (fb->width % 4) != 0 || (fb->height % 4) != 0)) {
> - DRM_DEBUG_KMS("src dimensions not correct for NV12\n");
> - goto err;
> - }
Looks correct to me.
Thanks for the patch, pushed to dinq.
> -
> for (i = 0; i < fb->format->num_planes; i++) {
> u32 stride_alignment;
>
> --
> 2.7.4
--
Ville Syrjälä
Intel
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-01-25 21:34 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-12 0:39 [PATCH v2] drm/i915: correct the pitch check for NV12 framebuffer Dongseong Hwang
2018-12-12 1:06 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-12-12 4:59 ` ✓ Fi.CI.IGT: " Patchwork
2018-12-12 20:24 ` [PATCH v2] " Ville Syrjälä
2018-12-12 20:33 ` Daniel Vetter
2018-12-12 21:15 ` Ville Syrjälä
2018-12-12 21:18 ` [Intel-gfx] " Singaiah Chintalapudi
2018-12-13 0:51 ` Hwang, Dongseong
2018-12-19 8:29 ` [PATCH v3] " raviraj.p.sitaram
2019-01-22 16:39 ` Sitaram, Raviraj P
2019-01-25 21:34 ` Ville Syrjälä [this message]
2018-12-19 9:19 ` ✓ Fi.CI.BAT: success for drm/i915: correct the pitch check for NV12 framebuffer (rev2) Patchwork
2018-12-19 10:51 ` ✓ Fi.CI.IGT: " Patchwork
2019-01-23 6:53 ` ✓ Fi.CI.BAT: success for drm/i915: correct the pitch check for NV12 framebuffer (rev3) Patchwork
2019-01-23 9:55 ` ✓ Fi.CI.IGT: " Patchwork
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=20190125213428.GS20097@intel.com \
--to=ville.syrjala@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=raviraj.p.sitaram@intel.com \
/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