From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: "Maíra Canal" <mcanal@igalia.com>,
"Melissa Wen" <mwen@igalia.com>,
"Petri Latvala" <adrinael@adrinael.net>,
"Kamil Konieczny" <kamil.konieczny@linux.intel.com>,
"Swati Sharma" <swati2.sharma@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Only set rotation if rotation != rotate-0
Date: Wed, 10 May 2023 13:18:33 +0300 [thread overview]
Message-ID: <3a8a2485-f851-46ec-c4b9-aa98d5d0076a@gmail.com> (raw)
In-Reply-To: <20230503203205.117841-1-mcanal@igalia.com>
Look ok to me. I didn't spot any of those ci shard run failures to
relate to this change.
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
On 3.5.2023 23.32, Maíra Canal wrote:
> If you run the kms_plane_scaling tests on drivers that don't support the
> rotation property, you end up getting the following error:
>
> (kms_plane_scaling:29327) igt_kms-CRITICAL: Test assertion failure function
> igt_atomic_prepare_plane_commit, file ../lib/igt_kms.c:3309:
> (kms_plane_scaling:29327) igt_kms-CRITICAL: Failed assertion: plane->props[i]
> (kms_plane_scaling:29327) igt_kms-CRITICAL: Last errno: 38, Function not implemented
> Dynamic subtest pipe-A-Virtual-1 failed.
>
> This error indicates that the rotation property is not implemented in
> the driver, making the test fail instead of skip/pass. This happens
> because, even if the test don't test rotation, it sets the rotation to
> IGT_ROTATE_0.
>
> Therefore, before setting the rotation property, verify if the
> rotation parameter is IGT_ROTATE_0. Only set the rotation property if
> the rotation is different than IGT_ROTATE_0. This way the
> kms_plane_scaling tests will skip/pass gracefully even without the
> rotation property implemented.
>
> Signed-off-by: Maíra Canal <mcanal@igalia.com>
> ---
> tests/kms_plane_scaling.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
> index a37abd16..0e7cd4a2 100644
> --- a/tests/kms_plane_scaling.c
> +++ b/tests/kms_plane_scaling.c
> @@ -441,7 +441,8 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
> else
> igt_plane_set_size(plane, width, height);
>
> - igt_plane_set_rotation(plane, rot);
> + if (rot != IGT_ROTATION_0)
> + igt_plane_set_rotation(plane, rot);
> commit_ret = igt_display_try_commit2(display, COMMIT_ATOMIC);
>
> igt_plane_set_fb(plane, NULL);
prev parent reply other threads:[~2023-05-10 10:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-03 20:32 [igt-dev] [PATCH i-g-t] tests/kms_plane_scaling: Only set rotation if rotation != rotate-0 Maíra Canal
2023-05-03 21:17 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2023-05-03 23:42 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2023-05-10 10:18 ` Juha-Pekka Heikkila [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=3a8a2485-f851-46ec-c4b9-aa98d5d0076a@gmail.com \
--to=juhapekka.heikkila@gmail.com \
--cc=adrinael@adrinael.net \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=mcanal@igalia.com \
--cc=mwen@igalia.com \
--cc=swati2.sharma@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