public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Kahola, Mika" <mika.kahola@intel.com>
To: "ville.syrjala@linux.intel.com" <ville.syrjala@linux.intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Minimum width and height for planar YUV formats on i915 devices
Date: Fri, 22 Mar 2019 07:12:56 +0000	[thread overview]
Message-ID: <56e1a1aaa3b77a97d50c2ea456cdea258f02e459.camel@intel.com> (raw)
In-Reply-To: <20190321182625.GK3888@intel.com>

Pushed!

Thanks for the review!

Cheers,
Mika

On Thu, 2019-03-21 at 20:26 +0200, Ville Syrjälä wrote:
> On Thu, Mar 21, 2019 at 03:57:14PM +0200, Mika Kahola wrote:
> > Use minimum of 16x16 size for i915 devices only as other HW's may
> > have different limitations.
> > The default is 8x8.
> 
> I guess the 8x8 is equally arbitrary for other devices. But maybe
> it's
> a good enough default?
> 
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> > 
> > Suggested-by: Ville Syrjala <ville.syrjala@linux.intel.com>
> > Signed-off-by: Mika Kahola <mika.kahola@intel.com>
> > ---
> >  tests/kms_plane_scaling.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> > index 01f5f7c9..10c852d5 100644
> > --- a/tests/kms_plane_scaling.c
> > +++ b/tests/kms_plane_scaling.c
> > @@ -149,7 +149,7 @@ static void check_scaling_pipe_plane_rot(data_t
> > *d, igt_plane_t *plane,
> >  
> >  	/* create buffer in the range of  min and max source side
> > limit.*/
> >  	width = height = 8;
> > -	if (is_planar_yuv_format(pixel_format))
> > +	if (is_i915_device(d->drm_fd) &&
> > is_planar_yuv_format(pixel_format))
> >  		width = height = 16;
> >  	igt_create_color_fb(display->drm_fd, width, height,
> >  		       pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]);
> > -- 
> > 2.17.1
> 
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-03-22  7:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 13:57 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Minimum width and height for planar YUV formats on i915 devices Mika Kahola
2019-03-21 15:04 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-03-21 18:26 ` [igt-dev] [PATCH i-g-t] " Ville Syrjälä
2019-03-22  7:12   ` Kahola, Mika [this message]
2019-03-22  6:02 ` [igt-dev] ✓ Fi.CI.IGT: success for " 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=56e1a1aaa3b77a97d50c2ea456cdea258f02e459.camel@intel.com \
    --to=mika.kahola@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=ville.syrjala@linux.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