From: Daniel Vetter <daniel@ffwll.ch>
To: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] igt/kms-crc-rotation: Fix flip subtests to follow kms guidelines.
Date: Wed, 10 Jan 2018 10:44:08 +0100 [thread overview]
Message-ID: <20180110094408.GK13066@phenom.ffwll.local> (raw)
In-Reply-To: <1515564509-12875-1-git-send-email-anusha.srivatsa@intel.com>
On Tue, Jan 09, 2018 at 10:08:29PM -0800, Anusha Srivatsa wrote:
> Fix flip subtest that used plaform names
> in igt_require() instead of testing if rotation
> property is supported on given combination of
> rotation/flips.
>
> Suggested-by: Daniel Vetter
> Cc: Daniel Vetter <daniel.vetter@intel.com>
> Signed-off-by: Anusha Srivatsa <anusha.srivatsa@intel.com>
> ---
> tests/kms_rotation_crc.c | 7 +------
> 1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
> index 799cf11..63f3b5b 100644
> --- a/tests/kms_rotation_crc.c
> +++ b/tests/kms_rotation_crc.c
> @@ -394,9 +394,6 @@ static void __test_plane_rotation(data_t *data, int plane_type, bool test_bad_fo
> igt_plane_t *plane;
> int i;
>
> - if (IS_CHERRYVIEW(data->devid) && pipe != PIPE_B)
> - continue;
> -
> igt_output_set_pipe(output, pipe);
>
> plane = igt_output_get_plane_type(output, plane_type);
> @@ -837,9 +834,7 @@ igt_main
> tiling_test_str(reflect_x->tiling),
> rot_test_str(reflect_x->rot),
> flip_test_str(reflect_x->flips)) {
> - igt_require(gen >= 10 ||
> - (IS_CHERRYVIEW(data.devid) && reflect_x->rot == IGT_ROTATION_0
> - && reflect_x->tiling == LOCAL_I915_FORMAT_MOD_X_TILED));
This isn't what I meant, and I also just realized that the rotation
subtests also hardcodes this.
Instead what you need to do in both cases is to read the possible values
for the ROTATION property, and skip if not everything you need is
supported.
The other subtest check that needs to be fixed is
igt_require(!(subtest->rot &
(IGT_ROTATION_90 | IGT_ROTATION_270)) ||
gen >= 9);
It's convoluted, but essentially what this does is skip 90/270 rotation
tests on pre-gen9.
Part of the checks are there already, see
igt_require(igt_plane_has_prop(plane, IGT_PLANE_ROTATION));
But this isn't complete - we only check whether the property exists, not
whether it supports all the different rotation/reflect modes we want to
test.
> + igt_require(subtest->flips);
This check here simply skips all the tests where we don't flip, which is
probably not quite what you had in mind I think. Did you test this and
compare results before/after on a machine where this test actually runs?
-Daniel
> data.rotation = (IGT_REFLECT_X | reflect_x->rot);
> data.override_tiling = reflect_x->tiling;
> data.flips = reflect_x->flips;
> --
> 2.7.4
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
prev parent reply other threads:[~2018-01-10 9:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 6:08 [PATCH i-g-t] igt/kms-crc-rotation: Fix flip subtests to follow kms guidelines Anusha Srivatsa
2018-01-10 6:33 ` ✓ Fi.CI.BAT: success for " Patchwork
2018-01-10 7:32 ` ✓ Fi.CI.IGT: " Patchwork
2018-01-10 9:44 ` Daniel Vetter [this message]
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=20180110094408.GK13066@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=anusha.srivatsa@intel.com \
--cc=daniel.vetter@intel.com \
--cc=intel-gfx@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox