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 v2] tests/kms_plane_scaling: Check supported format for rotation
Date: Tue, 9 Apr 2019 06:37:18 +0000	[thread overview]
Message-ID: <bd32845a2a486e9225aa63b6202cd0b02fcc2f59.camel@intel.com> (raw)
In-Reply-To: <20190408120404.GA3888@intel.com>

Pushed. Thanks for the review!


On Mon, 2019-04-08 at 15:04 +0300, Ville Syrjälä wrote:
> On Mon, Apr 08, 2019 at 02:45:29PM +0300, Mika Kahola wrote:
> > Let's check if 90/270 rotation is supported for the format that we
> > are
> > trying to test.
> > 
> > Currently, if we try to test unsupported format the kernel
> > complains with
> > the following message.
> > 
> > "[drm:skl_plane_check [i915]] Unsupported pixel format Y210
> > little-endian (0x30313259) for 90/270!"
> > 
> > Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> > Signed-off-by: Mika Kahola <mika.kahola@intel.com>
> 
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
> 
> > ---
> >  tests/kms_plane_scaling.c | 4 +---
> >  1 file changed, 1 insertion(+), 3 deletions(-)
> > 
> > diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> > index 3364073c..bb14b2cd 100644
> > --- a/tests/kms_plane_scaling.c
> > +++ b/tests/kms_plane_scaling.c
> > @@ -144,9 +144,6 @@ static void check_scaling_pipe_plane_rot(data_t
> > *d, igt_plane_t *plane,
> >  	igt_output_set_pipe(output, pipe);
> >  	mode = igt_output_get_mode(output);
> >  
> > -	igt_skip_on(!igt_plane_has_format_mod(plane, pixel_format,
> > -					      tiling));
> > -
> >  	/* create buffer in the range of  min and max source side
> > limit.*/
> >  	width = height = 8;
> >  	if (is_i915_device(d->drm_fd) &&
> > is_planar_yuv_format(pixel_format))
> > @@ -201,6 +198,7 @@ static void
> > test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
> >  			for (int j = 0; j < plane->drm_plane-
> > >count_formats; j++) {
> >  				unsigned format = plane->drm_plane-
> > >formats[j];
> >  				if (igt_fb_supported_format(format) &&
> > +				    igt_plane_has_format_mod(plane,
> > format, tiling) &&
> >  				    can_rotate(d, format))
> >  					check_scaling_pipe_plane_rot(d,
> > plane, format,
> >  								     ti
> > ling, pipe,
> > -- 
> > 2.17.1
> 
> 
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2019-04-09  6:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08 11:45 [igt-dev] [PATCH i-g-t v2] tests/kms_plane_scaling: Check supported format for rotation Mika Kahola
2019-04-08 12:04 ` Ville Syrjälä
2019-04-09  6:37   ` Kahola, Mika [this message]
2019-04-08 12:18 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: Check supported format for rotation (rev3) Patchwork
2019-04-08 14:43 ` [igt-dev] ✓ 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=bd32845a2a486e9225aa63b6202cd0b02fcc2f59.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