All of lore.kernel.org
 help / color / mirror / Atom feed
From: Caz Yokoyama <Caz.Yokoyama@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 1/1] tests/kms_rotation_crc: multiplane-rotation* faster
Date: Fri, 26 Apr 2019 10:26:17 -0700	[thread overview]
Message-ID: <a8f3273bb5409a8ed8b96aef55e2d240043c9543.camel@intel.com> (raw)
In-Reply-To: <cb1f5972252d745a86a74d59a63fb7bdd903a418.1554318499.git.caz.yokoyama@intel.com>

Drop because nobody respond. Maybe because of one of
- 42% faster has no value
- the patch breaks purpose of the test.
-caz

On Wed, 2019-04-03 at 12:11 -0700, Caz Yokoyama wrote:
> by rotating 1/4 of data.
> 
> The test rotated 20% horizontally, 40% vertically of 1920x1200
> display
> plane. This patch makes them 10% and 20% respectively.
> 
> paint_squares(), igt_display_try_commit2() and igt_pipe_crc_current()
> consume 99% of whole test. By this patch, paint_squares() and
> igt_display_try_commit2() run 42% faster. Remaining
> igt_pipe_crc_current()
> runs same because it is synchronized with vsync.
> multiplane-rotation-cropping-bottom sub test runs 22% faster.
> 
> Signed-off-by: Caz Yokoyama <caz.yokoyama@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> ---
>  tests/kms_rotation_crc.c | 48 ++++++++++++++++++++----------------
> ----
>  1 file changed, 24 insertions(+), 24 deletions(-)
> 
> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
> index fc995d07..e0ba83da 100644
> --- a/tests/kms_rotation_crc.c
> +++ b/tests/kms_rotation_crc.c
> @@ -534,18 +534,18 @@ static void test_multi_plane_rotation(data_t
> *data, enum pipe pipe)
>  		float_t height;
>  		uint64_t tiling;
>  	} planeconfigs[] = {
> -	{IGT_ROTATION_0, .2f, .4f, LOCAL_DRM_FORMAT_MOD_NONE },
> -	{IGT_ROTATION_0, .2f, .4f, LOCAL_I915_FORMAT_MOD_X_TILED },
> -	{IGT_ROTATION_0, .2f, .4f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> -	{IGT_ROTATION_0, .2f, .4f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> -	{IGT_ROTATION_90, .2f, .4f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> -	{IGT_ROTATION_90, .2f, .4f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> -	{IGT_ROTATION_180, .2f, .4f, LOCAL_DRM_FORMAT_MOD_NONE },
> -	{IGT_ROTATION_180, .2f, .4f, LOCAL_I915_FORMAT_MOD_X_TILED },
> -	{IGT_ROTATION_180, .2f, .4f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> -	{IGT_ROTATION_180, .2f, .4f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> -	{IGT_ROTATION_270, .2f, .4f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> -	{IGT_ROTATION_270, .2f, .4f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> +	{IGT_ROTATION_0, .1f, .2f, LOCAL_DRM_FORMAT_MOD_NONE },
> +	{IGT_ROTATION_0, .1f, .2f, LOCAL_I915_FORMAT_MOD_X_TILED },
> +	{IGT_ROTATION_0, .1f, .2f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> +	{IGT_ROTATION_0, .1f, .2f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> +	{IGT_ROTATION_90, .1f, .2f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> +	{IGT_ROTATION_90, .1f, .2f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> +	{IGT_ROTATION_180, .1f, .2f, LOCAL_DRM_FORMAT_MOD_NONE },
> +	{IGT_ROTATION_180, .1f, .2f, LOCAL_I915_FORMAT_MOD_X_TILED },
> +	{IGT_ROTATION_180, .1f, .2f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> +	{IGT_ROTATION_180, .1f, .2f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
> +	{IGT_ROTATION_270, .1f, .2f, LOCAL_I915_FORMAT_MOD_Y_TILED },
> +	{IGT_ROTATION_270, .1f, .2f, LOCAL_I915_FORMAT_MOD_Yf_TILED },
>  	};
>  
>  	/*
> @@ -842,11 +842,11 @@ igt_main
>  		igt_require(gen >= 9);
>  		cleanup_crtc(&data);
>  		data.planepos[0].origo = p_top | p_left;
> -		data.planepos[0].x = .2f;
> -		data.planepos[0].y = .1f;
> +		data.planepos[0].x = .1f;
> +		data.planepos[0].y = .05f;
>  		data.planepos[1].origo = p_top | p_right;
> -		data.planepos[1].x = -.4f;
> -		data.planepos[1].y = .1f;
> +		data.planepos[1].x = -.2f;
> +		data.planepos[1].y = .05f;
>  		test_multi_plane_rotation(&data, 0);
>  	}
>  
> @@ -854,11 +854,11 @@ igt_main
>  		igt_require(gen >= 9);
>  		cleanup_crtc(&data);
>  		data.planepos[0].origo = p_top | p_left;
> -		data.planepos[0].x = -.05f;
> -		data.planepos[0].y = -.15f;
> +		data.planepos[0].x = -.025f;
> +		data.planepos[0].y = -.075f;
>  		data.planepos[1].origo = p_top | p_right;
> -		data.planepos[1].x = -.15f;
> -		data.planepos[1].y = -.15f;
> +		data.planepos[1].x = -.075f;
> +		data.planepos[1].y = -.075f;
>  		test_multi_plane_rotation(&data, 0);
>  	}
>  
> @@ -866,11 +866,11 @@ igt_main
>  		igt_require(gen >= 9);
>  		cleanup_crtc(&data);
>  		data.planepos[0].origo = p_bottom | p_left;
> -		data.planepos[0].x = -.05f;
> -		data.planepos[0].y = -.20f;
> +		data.planepos[0].x = -.025f;
> +		data.planepos[0].y = -.10f;
>  		data.planepos[1].origo = p_bottom | p_right;
> -		data.planepos[1].x = -.15f;
> -		data.planepos[1].y = -.20f;
> +		data.planepos[1].x = -.075f;
> +		data.planepos[1].y = -.10f;
>  		test_multi_plane_rotation(&data, 0);
>  	}
>  

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

  parent reply	other threads:[~2019-04-26 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-03 19:11 [igt-dev] [PATCH i-g-t 1/1] tests/kms_rotation_crc: multiplane-rotation* faster Caz Yokoyama
2019-04-03 20:25 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/1] " Patchwork
2019-04-26 17:26 ` Caz Yokoyama [this message]
2019-04-29  9:33   ` [igt-dev] [PATCH i-g-t 1/1] " Jani Nikula

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=a8f3273bb5409a8ed8b96aef55e2d240043c9543.camel@intel.com \
    --to=caz.yokoyama@intel.com \
    --cc=igt-dev@lists.freedesktop.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.