From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: Ananya Sharma <ananya.sharma@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t v4] tests/kms_rotation_crc: MPO subtest-mixing of pixel format and tiling on different planes.
Date: Thu, 23 Dec 2021 10:03:24 +0200 [thread overview]
Message-ID: <d8aa806f-7653-4c02-69e4-ca075d192cba@gmail.com> (raw)
In-Reply-To: <20211220125741.283879-1-ananya.sharma@intel.com>
Your change look ok to me. This entire subtest start to look bit messy
but it was like that already before your patch, will need to do some
cleanup later.
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
On 20.12.2021 14.57, Ananya Sharma wrote:
> P010 pixel format is newly added to the already existing list of pixel formats(RGB565,XRGB8888,NV12).
>
> Signed-off-by: Ananya Sharma <ananya.sharma@intel.com>
> ---
> tests/kms_rotation_crc.c | 13 ++++++-------
> 1 file changed, 6 insertions(+), 7 deletions(-)
>
> diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
> index 37f6abe9..3f716002 100644
> --- a/tests/kms_rotation_crc.c
> +++ b/tests/kms_rotation_crc.c
> @@ -683,7 +683,7 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
> * case with modifier are 2 bpp, 4 bpp and NV12.
> */
> static const uint32_t formatlist[] = {DRM_FORMAT_RGB565,
> - DRM_FORMAT_XRGB8888, DRM_FORMAT_NV12};
> + DRM_FORMAT_XRGB8888, DRM_FORMAT_NV12, DRM_FORMAT_P010};
>
> static struct {
> igt_rotation_t rotation;
> @@ -769,14 +769,13 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
> * no need to redo comparison image and
> * just use stored crc.
> */
> - if (p[0].format != DRM_FORMAT_NV12 &&
> - p[1].format != DRM_FORMAT_NV12 &&
> + if (!igt_format_is_yuv_semiplanar(p[0].format) && !igt_format_is_yuv_semiplanar(p[1].format) &&
> crclog[ctz(planeconfigs[i].rotation) | (ctz(planeconfigs[j].rotation) << 2)].frame != 0) {
> retcrc_sw = crclog[ctz(planeconfigs[i].rotation) | (ctz(planeconfigs[j].rotation) << 2)];
> have_crc = true;
> - } else if (p[0].format == DRM_FORMAT_NV12 &&
> - p[1].format != DRM_FORMAT_NV12 &&
> - lastroundjformat != DRM_FORMAT_NV12 &&
> + } else if((p[0].format == DRM_FORMAT_NV12 || p[0].format == DRM_FORMAT_P010) &&
> + p[1].format != DRM_FORMAT_NV12 && p[1].format != DRM_FORMAT_P010 &&
> + lastroundjformat != DRM_FORMAT_NV12 && lastroundjformat != DRM_FORMAT_P010 &&
> planeconfigs[i].rotation == lastroundirotation &&
> planeconfigs[j].rotation == lastroundjrotation) {
> /*
> @@ -837,7 +836,7 @@ static void test_multi_plane_rotation(data_t *data, enum pipe pipe)
> flipsw,
> &retcrc_sw);
>
> - if (p[0].format != DRM_FORMAT_NV12 && p[1].format != DRM_FORMAT_NV12)
> + if (!igt_format_is_yuv_semiplanar(p[0].format) &&!igt_format_is_yuv_semiplanar(p[1].format))
> crclog[ctz(planeconfigs[i].rotation) | (ctz(planeconfigs[j].rotation) << 2)]
> = retcrc_sw;
> }
next prev parent reply other threads:[~2021-12-23 8:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-20 12:57 [igt-dev] [PATCH i-g-t v4] tests/kms_rotation_crc: MPO subtest-mixing of pixel format and tiling on different planes Ananya Sharma
2021-12-20 14:25 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-12-20 16:08 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-12-23 12:02 ` Sharma, Ananya
2021-12-23 19:17 ` Vudum, Lakshminarayana
2021-12-23 8:03 ` Juha-Pekka Heikkila [this message]
2021-12-23 11:07 ` [igt-dev] [PATCH i-g-t v4] " Sharma, Ananya
2021-12-23 17:32 ` [igt-dev] ✓ Fi.CI.IGT: success for " 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=d8aa806f-7653-4c02-69e4-ca075d192cba@gmail.com \
--to=juhapekka.heikkila@gmail.com \
--cc=ananya.sharma@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.