Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Kahola, Mika" <mika.kahola@intel.com>
To: "Kaparthi, SowmyaX" <sowmyax.kaparthi@intel.com>,
	"igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"Ausmus, James" <james.ausmus@intel.com>
Subject: Re: [igt-dev] [i-g-t] tests/kms_plane_scaling: set minimum height and width to 20
Date: Wed, 9 Sep 2020 06:51:13 +0000	[thread overview]
Message-ID: <2c5152b0d78740d790754e878db075e3@intel.com> (raw)
In-Reply-To: <20200908090436.1344-1-sowmyax.kaparthi@intel.com>

> -----Original Message-----
> From: Kaparthi, SowmyaX <sowmyax.kaparthi@intel.com>
> Sent: Tuesday, September 8, 2020 12:05 PM
> To: igt-dev@lists.freedesktop.org; Ausmus, James
> <james.ausmus@intel.com>; Kahola, Mika <mika.kahola@intel.com>;
> Kaparthi, SowmyaX <sowmyax.kaparthi@intel.com>
> Subject: [i-g-t] tests/kms_plane_scaling: set minimum height and width to 20
> 
> Depending on pixel format minimum width and height can be as high as 20.
> Set width and height to 20. Remove is_planar_yuv_format, no longer used.
> 
> Cc: Ausmus, James <james.ausmus@intel.com>
> Signed-off-by: Sowmya Kaparthi <sowmyax.kaparthi@intel.com>

The patch look ok to me. The width and height can be divided by 4 and there's no need to have separate width and height for yuv and planar formats.

Reviewed-by: Mika Kahola <mika.kahola@intel.com>

> ---
>  tests/kms_plane_scaling.c | 17 +----------------
>  1 file changed, 1 insertion(+), 16 deletions(-)
> 
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index
> 19087286..ecd2c2e3 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -62,19 +62,6 @@ static int get_num_scalers(data_t* d, enum pipe pipe)
>  		return 1;
>  }
> 
> -static bool is_planar_yuv_format(uint32_t pixelformat) -{
> -	switch (pixelformat) {
> -	case DRM_FORMAT_NV12:
> -	case DRM_FORMAT_P010:
> -	case DRM_FORMAT_P012:
> -	case DRM_FORMAT_P016:
> -		return true;
> -	default:
> -		return false;
> -	}
> -}
> -
>  static void cleanup_fbs(data_t *data)
>  {
>  	int i;
> @@ -147,9 +134,7 @@ static void check_scaling_pipe_plane_rot(data_t *d,
> igt_plane_t *plane,
>  	mode = igt_output_get_mode(output);
> 
>  	/* 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))
> -		width = height = 16;
> +	width = height = 20;
>  	igt_create_color_fb(display->drm_fd, width, height,
>  		       pixel_format, tiling, 0.0, 1.0, 0.0, &d->fb[0]);
>  	igt_plane_set_fb(plane, &d->fb[0]);
> --
> 2.25.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2020-09-09  6:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-08  9:04 [igt-dev] [i-g-t] tests/kms_plane_scaling: set minimum height and width to 20 Sowmya Kaparthi
2020-09-09  6:51 ` Kahola, Mika [this message]
2020-09-09  9:07   ` Petri Latvala
2020-09-09  9:27     ` Kaparthi, SowmyaX
2020-09-09  9:42       ` Petri Latvala
2020-09-09  9:03 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_plane_scaling: set minimum height and width to 20 (rev3) Patchwork
2020-09-09  9:44 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2020-09-07 10:28 [igt-dev] [i-g-t] tests/kms_plane_scaling: set minimum height and width to 20 Sowmya Kaparthi

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=2c5152b0d78740d790754e878db075e3@intel.com \
    --to=mika.kahola@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=james.ausmus@intel.com \
    --cc=sowmyax.kaparthi@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